《實(shí)驗(yàn)13 ospf協(xié)議》由會(huì)員分享,可在線閱讀,更多相關(guān)《實(shí)驗(yàn)13 ospf協(xié)議(2頁(yè)珍藏版)》請(qǐng)?jiān)谘b配圖網(wǎng)上搜索。
1、 實(shí)驗(yàn)13 ospf協(xié)議
一.實(shí)驗(yàn)拓?fù)鋱D
二.實(shí)驗(yàn)?zāi)康?
1、起用ospf協(xié)議,進(jìn)程號(hào)100 2、啟用認(rèn)證 md5
3、用r2做DR,r3做BDR 4、設(shè)r1的cost值為50
r2:
en
config t
int e0
ip add 1.1.1.2 255.255.255.0
no shut
int loop 1
ip add 2.2.2.2 255.255.255.0
exit
r3
2、:
en
config t
int e0
ip add 1.1.1.3 255.255.255.0
int loop 1
ip add 3.3.3.3 255.255.255.0
exit
三.實(shí)驗(yàn)命令
r1:
en
config t
int e0
ip add 1.1.1.1 255.255.255.0
no shut
int loop 1
ip add 4.4.4.4 255.255.
3、255.0
exit
啟用ospf協(xié)議:
r1:
config t
router ospf 100
net 1.1.1.1 0.0.0.0 area 0
net 4.4.4.0 0.0.0.255 area0
exit
r2:
config t
router ospf 100
net 1.1.1.2 0.0.0.0 area 0
net 2.2.2.0 0.0.0.255 area 0
exit
r
4、3:
config t
router ospf 100
net 1.1.1.3 0.0.0.0 area 0
net 3.3.3.3 0.0.0.255 area 0
exit
啟用md5認(rèn)證
r1:config t
router ospf 100
area 0 authentication message-digest
int e0
ip ospf message-digest-key 1 md5 cisco
r2:config t
5、 router ospf 100
area 0 authentication message-digest
int e0
ip ospf message-digest-key 1 md5 cisco
r3:config t
router ospf 100
area 0 authentication message-digest
int e0
ip ospf message-digest-key 1 md5 cisco
設(shè)置r2為DR,設(shè)置r3為BDR
6、r2 ;
config t
int e0
ip ospf priority 100
exit
r3:
config t
int e0
ip ospf priority 50
設(shè)置r1的cost值為50
r1:
config t
int e0
ip ospf cost 50
exit
第 2 頁(yè) 共 2 頁(yè)