OSPF 虚链路及 tunnel 技术 解 决 区 域 0不 连 续 或 者 远 离 区 域 0的 普 通 区 域 问 题 , 可 以 有 两 种 方 法 : 虚 链 路 、tunnel技术 ospf virtual-link 及 tunnel 技术使用方法 有些时候,由于区域包含的路由器过多或区域的地理位置原因等,造成网络中配置的 OSPF区域(非 area 0)不能够与 area 0 相连
大家都知道,在 OSPF 的所有区域内,area 0 是骨干区域,非 0 区域都要与 area0 相连,才能够得知其他网络的路由信息
如下图所示情况: 拓扑中的网络为 192
0 /24,area 2 不能与 area 0 直接相连,这样 R5 就不能够学习到 area 0 区域的路由
基本配置省略
进行 OSPF 协议配置: R1(config)#router ospf 100 R1(config-router)#net 192
255 a 0 R1(config-router)#net 1
255 a 0 R1(config-router)#exit R2(config)#router ospf 100 R2(config-router)#net 192
255 a 0 R2(config-router)#net 192
255 a 1 R2(config-router)#net 2
255 a 1 R2(config-router)#exit R3(config)#router ospf 100 R3(config-router)#net 192
255 a 1 R3(config-router)#net