OSPF“孤儿”区域

在多区域OSPF中,area0为主干区域,其他非主干区域都需要包含一个接口连接主干区域,那么当出现有的区域不和主干区域相连,成了"孤儿";

解决办法:

  1. 虚链路 

在连接孤儿区域的路由器和连接主干区域的路由器之间建立一条虚链路,实现孤儿区域和主干区域的连接;

                 image.png

R3(config)# router ospf 1
R3(config-router)# area 2 virtual-link 4.4.4.4
R4(config)# router ospf 1
R4(config-router)# area 2 virtual-link 3.3.3.3
  1. tunnel隧道 

在连接孤儿区域的路由器和连接主干区域的路由器之间建立两条通向对方的隧道;

R3 
int tunnel0
ip add 192.168.100.3 255.255.255.0
ip ospf 1 area 0
tunnel source e0/1
tunnel destination 192.168.34.4
tunnel mode ipip
R4
int tunnel0
ip add 192.168.100.4 255.255.255.0
ip ospf 1 area 0
tunnel source e0/0
tunnel destination 192.168.34.3
tunnel mode ipip

 

posted @ 2021-02-21 18:33  酸萝卜别吃  阅读(87)  评论(0编辑  收藏  举报