思科OSPF修改AD值的路徑的小實驗

實驗名稱:做OSPF的AD值修改選擇路徑
實驗拓撲ide

實驗步驟:
配置IP地址
R1:
enable
conf t
int f 0/0
no shu
ip add 192.168.12.1 255.255.255.0
exit
int l 0
ip add 10.10.1.1 255.255.255.0
exitrouter

R2:
enable
conf t
int f0/1
no shu
ip add 192.168.12.2 255.255.255.0
exit
int l 0
ip add 10.10.2.2 255.255.255.0
exit
int f0/0
no shu
ip add 192.168.23.2 255.255.255.0
exitip

R3:
enable
conf t
int f0/1
no shu
ip add 192.168.23.3 255.255.255.0
exit
int l 0
ip add 10.10.3.3 255.255.255.0
exit
int f0/0
no shu
ip add 192.168.34.3 255.255.0
exit路由

R4:
enable
conf t
int f0/1
no shu
ip add 192.168.34.4 255.255.255.0
exit
int l 0
ip add 10.10.4.4 255.255.255.0
exitit

配置ospfclass

R1:
router os 1
router-id 1.1.1.1
net 192.168.12.0 0.0.0.255 ar 12
net 10.10.1.0 0.0.0.255 ar 12
exit配置

R2:
router os 1
router-id 2.2.2.2
net 192.168.12.0 0.0.0.255 ar 12
net 192.168.23.0 0.0.0.255 ar 0
net 10.10.2.0 0.0.0.255 ar 0
exitroute

R3:
router os 1
router-id 3.3.3.3
net 192.168.23.0 0.0.0.255 ar 0
net 10.10.3.0 0.0.0.255 ar 0
net 192.168.34.0 0.0.0.255 ar 0
exittab

R4:
router os 1
router-id 4.4.4.4
net 192.168.34.0 0.0.0.255 ar 0
net 10.10.4.0 0.0.0.255 ar 0
exitdi

配置路由AD值屬性,在R2與R4上建66.1.1.1 修改R4的AD爲100,讓
路由往R4走

在R2與R4上添加66.1.1.1
R2:
int l 66
ip add 66.1.1.1 255.255.255.0
exit
router os 1
router-id 2.2.2.2
net 66.1.1.1 0.0.0.0 ar 0
exit

R4:
int l 66
ip add 66.1.1.1 255.255.255.0
exit
router os 1
router-id 4.4.4.4
net 66.1.1.1 0.0.0.0 ar 0
exit

思路:在R3上作ACL容許 ,修改AD值

R3:

ip access-list standard 66 10 permit 66.1.1.1exitrouter os 1distance 100 4.4.4.4 0.0.0.0 66exitclear ip os process yshow ip route osshow ip os database s

相關文章
相關標籤/搜索