- 解决问题:所有非骨干区域必须与骨干区域相邻。如果不相邻必须采用虚链路技术实现通信。
-
- 虚链路在哪里配置:在两台区域边界路由器上进行做虚链路技术。
- R4---------R6
- 1:创建一个回环口
- Router(config)# INterface LOopback 1
- Router(config-if)# IP ADDress 4.4.4.4 255.255.255.0
- 2:将回环口NETWORK在两台边界路由器之间的区域
- Router(config)# router ospf 1
- Router(config-router)# network 4.4.4.0 0.0.0.255 area 1
- 3:将回环口配置成ROUTER-ID
- Router(config)# router ospf 1
- Router(config-router)# router-id4.4.4.4
- Router(config-router)# end
- Router# clear ipospf process
- Reset ALL OSPF processes? [no]: yes
- 4:创建虚链路
- Router(config)# router ospf 1
- Router(config-router)# area 1(两个边界路由器之间的区域) virtual-link 6.6.6.6(对方的ID)
- R6:
- 1:创建一个回环口
- Router(config)# interface loopback 1
- Router(config-if)# ip address 6.6.6.6 255.255.255.0
- Router(config-if)# exit
- 2:将回环口NETWORK在两台边界路由器之间的区域
- Router(config)# router ospf 1
- Router(config-router)# network 6.6.6.0 0.0.0.255 area 1
- Router(config-router)# xit
- 3:将回环口配置成ROUTER-ID
- Router(config)# router ospf 1
- Router(config-router)# router-id 6.6.6.6
- Router(config-router)# end
- Router#clear ip ospf process
- Reset ALL OSPF processes? [no]: yes
- 4:创建虚链路
- Router(config)# ROUTER OSPF 1
- Router(config-router)#AREA 1 virtual-link 4.4.4.4
-
- 区域2的路由器上去配置 (思科模拟软件的bug 使上图中的 area 40 不能同步其他条目的路由,所以在area 的区域里的路由器上配置默认路由)
- Router(config)# ip route 0.0.0.0 0.0.0.0 下一跳
- Router(config)# ip route 0.0.0.0 0.0.0.0 下一跳
ospf 虚链路
最新推荐文章于 2024-05-31 17:39:27 发布