思科OSPF多進程重分發小實驗

實驗拓撲:redis

實驗需求:引入外部路由,運行多個OSPF進程,而且相互之間進行重分發;全部路由器之間都可以相互ping通。
實驗步驟:
配置路由器的每一個端口的IP地址
R1:
enable
conf t
int f0/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
exitide

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
exitrouter

R3:
enable
conf t
int f 0/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
int f 0/0
no shu
ip add 192.168.34.3 255.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
exit
int f0/0
no shu
ip add 192.168.45.4 255.255.255.0
exitip

R5:
enable
conf t
int f0/1
no shu
ip add 192.168.45.5 255.255.255.0
exit
int l 0
ip add 10.10.5.5 255.255.255.0
exit路由

在每一個路由器開啓OSPF並配置OSPF路由it

R1:
router os 1
router-id 1.1.1.1
net 192.168.12.0 0.0.0.255 ar 0
net 10.10.1.0 0.0.0.255 ar 0
exitclass

R2:
router os 1
router-id 2.2.2.2
net 192.168.12.0 0.0.0.255 ar 0
net 10.10.2.0 0.0.0.255 ar 0
net 192.168.23.0 0.0.0.255 ar 0
exit配置

R3:
router os 1
router-id 3.3.3.3
net 192.168.23.0 0.0.0.255 ar 0
exit
router os 1
router-id 3.3.3.3
net 192.168.34.0 0.0.0.255 ar 12
net 10.10.3.0 0.0.0.255 ar 12
exitroute

R4:
router os 1
router-id 4.4.4.4
net 192.168.34.0 0.0.0.255 ar 12
exit
router os 45
router-id 6.6.6.6
net 192.168.45.0 0.0.0.255 ar 45
net 10.10.4.0 0.0.0.255 ar 45
exit

R5:
router os 45
router-id 5.5.5.5
net 192.168.45.0 0.0.0.255 ar 45
net 10.10.5.0 0.0.0.255 ar 45
exit

引入外部路由,在R4作重分發(須要作雙向)

R4:router os 1redistribute ospf 45 subnetsexitrouter os 45redistribute ospf 1 subnetsexit

相關文章
相關標籤/搜索