OSPF進階配置拓撲結構圖
![](https://img.laitimes.com/img/9ZDMuAjOiMmIsIjOiQnIsISPrdEZwZ1Rh5WNXp1bwNjW1ZUba9VZwlHdsATOfd3bkFGazxCMx8VesATMfhHLlN3XnxCMwEzX0xiRGZkRGZ0Xy9GbvNGLpZTY1EmMZVDUSFTU4VFRR9Fd4VGdsYTMfVmepNHLrJXYtJXZ0F2dvwVZnFWbp1zczV2YvJHctM3cv1Ce-cmbw5SY4MTO5IWMjRGM3QWO4MjM3MmYjZWMwUWZxQ2N2YmZy8CX0EzLclDM5EDMy8CXn9Gbi9CXzV2Zh1WavwVbvNmLvR3YxUjLxM3Lc9CX6MHc0RHaiojIsJye.png)
建立拓撲結構時,R3路由器需要右鍵點選選擇configure,在Slots中添加兩塊NM-1FE-TX業務闆。
一、服務端環境部署
1、R1路由器:
配置各接口的IP位址資訊;配置末梢網絡的預設路由,并指向下一跳位址資訊。
conf t
int f0/0
ip add 192.168.10.1 255.255.255.0
no shut
int f0/1
ip add 192.168.20.1 255.255.255.0
no shut
ip router 0.0.0.0 0.0.0.0 192.168.20.2
2、R2路由器:
配置各接口的IP位址資訊,配置OSPF路由協定;配置靜态路由;注入直連網段資訊;注入靜态路由資訊。
conf t
int f0/0
ip add 192.168.30.1 255.255.255.0
no shut
ex
int f0/1
ip add 192.168.20.2 255.255.255.0
no shut
router ospf 1
router-id 2.2.2.2
network 192.168.30.0 0.0.0.255 area 1
ex
ip router 192.168.10.0 255.255.255.0 192.168.20.1
router ospf 1
redistribute connected subnets
redistribute static subnets
3、R3路由器:
(1)配置各接口的IP位址資訊,
conf t
int f0/0
ip add 192.168.30.2 255.255.255.0
no shut
int f0/1
ip add 192.168.40.1 255.255.255.0
no shut
int f1/0
ip add 12.0.0.1 255.255.255.0
no shut
int f2/0
ip add 192.168.70.1 255.255.255.0
no shut
(2)配置預設路由,配置OSPF路由協定,注入預設路由資訊。
ip route 0.0.0.0 0.0.0.0 12.0.0.2
route ospf 1
route-id 3.3.3.3
network 192.168.30.0 0.0.0.255 area 1
network 192.168.40.0 0.0.0.255 area 0
network 192.168.70.0 0.0.0.255 area 0
default-information originate
ex
4、R4路由器:
conf t
int f0/0
ip add 192.168.40.2 255.255.255.0
no shut
int f0/1
ip add 192.168.50.1 255.255.255.0
no shut
(2)配置RIP路由協定,注入OSPF路由協定資訊,注入RIP協定資訊。
route rip
ver 2
no auto-summary
network 192.168.50.0
ex
router rip
redis ospf 1 metric 5
ex
router ospf 1
router-id 4.4.4.4
network 192.168.40.0 0.0.0.255 area 0
redistribute rip subnets
5、R5路由器:
配置各接口的IP位址資訊,配置RIP路由協定,
conf t
int f0/0
ip add 192.168.50.2 255.255.255.0
no shut
int f0/1
ip add 192.168.60.1 255.255.255.0
no shut
router rip
ver 2
no auto-summary
network 192.168.50.0
network 192.168.60.0
6、R6路由器:
配置各接口的IP位址資訊,配置靜态路由。
conf t
int f0/0
ip add 12.0.0.2 255.255.255.0
no shut
int f0/1
ip add 13.0.0.1 255.255.255.0
no shut
ex
ip route 192.168.0.0 255.255.0.0 12.0.0.1
二、用戶端環境部署
1、主機1配置IP位址及網關資訊
2、主機2配置IP位址及網關資訊
3、主機3配置IP位址及網關資訊