电脑桌面
添加小米粒文库到电脑桌面
安装后可以在桌面快捷访问

OSPF虚链路及tunnel技术VIP免费

OSPF虚链路及tunnel技术_第1页
1/6
OSPF虚链路及tunnel技术_第2页
2/6
OSPF虚链路及tunnel技术_第3页
3/6
OSPF 虚链路及 tunnel 技术 解 决 区 域 0不 连 续 或 者 远 离 区 域 0的 普 通 区 域 问 题 , 可 以 有 两 种 方 法 : 虚 链 路 、tunnel技术 ospf virtual-link 及 tunnel 技术使用方法 有些时候,由于区域包含的路由器过多或区域的地理位置原因等,造成网络中配置的 OSPF区域(非 area 0)不能够与 area 0 相连。大家都知道,在 OSPF 的所有区域内,area 0 是骨干区域,非 0 区域都要与 area0 相连,才能够得知其他网络的路由信息。如下图所示情况: 拓扑中的网络为 192.168.X.0 /24,area 2 不能与 area 0 直接相连,这样 R5 就不能够学习到 area 0 区域的路由。 基本配置省略。 进行 OSPF 协议配置: R1(config)#router ospf 100 R1(config-router)#net 192.168.1.0 0.0.0.255 a 0 R1(config-router)#net 1.1.1.0 0.0.0.255 a 0 R1(config-router)#exit R2(config)#router ospf 100 R2(config-router)#net 192.168.1.0 0.0.0.255 a 0 R2(config-router)#net 192.168.2.0 0.0.0.255 a 1 R2(config-router)#net 2.2.2.0 0.0.0.255 a 1 R2(config-router)#exit R3(config)#router ospf 100 R3(config-router)#net 192.168.2.0 0.0.0.255 a 1 R3(config-router)#net 192.168.3.0 0.0.0.255 a 1 R3(config-router)#net 3.3.3.0 0.0.0.255 a 1 R3(config-router)#exit R4(config)#router ospf 100 R4(config-router)#net 192.168.3.0 0.0.0.255 a 1 R4(config-router)#net 192.168.4.0 0.0.0.255 a 2 R4(config-router)#net 4.4.4.0 0.0.0.255 a 2 R4(config-router)#exit R5(config)#router ospf 100 R5(config-router)#net 192.168.4.0 0.0.0.255 a 2 R5(config-router)#net 5.5.5.0 0.0.0.255 a 2 R5(config-router)#exit 查看路由表: 没有 Area 2 的路由 解 决 方 法 1、 在 R2和 R4之间建立虚链路,使 Area 2的 type 3类的 LSA可以到达 Area 0区。 配置方法: R2(config)#router ospf 100 R2(config-router)#area 1 virtual-link 4.4.4.4 R2(config-router)#exit R4(config)#router ospf 100 R4(config-router)#area 1 virtual-link 2.2.2.2 R4(config-router)#exit 在查看路由表: 解 决 方 法 2、 在 R2和 R4之间使用隧道技术,在将隧道发布到 Area 0中。 配置方法: R2(config)#interface tunnel 0 R2(config-if)#tunnel source 192.168.2.1 R2(config-if)#tunnel destination 192.168.3.2 R2(config-if)#ip add 192.168.5.1 255.255.255.0 R2(config-if)#exit R4(config)#int tunnel 0 R4(config-if)#tunnel source 192.168.3.2 R4(config-if)#tunnel destination 192.168.2.1 R4(config-if)#ip add 192.168.5.2 255.255.255.0 //要 与 上 面 的 地 址 , 在 同 一网段,不要 求 tunnel号相同 R4(config-if)#exit 然后把 tunnel网段宣告到 area 0,因为 tunnel类似于上 面 的 虚链路,都是属于 AREA 0 的 R2(config)#router ospf 100 R2(config-router#network 192.168.5.0 0.0.0.255 area 0 R4(config)#router ospf 100 R4(config-router#network 192.168.5.0 0.0.0.255 area 0 查看路由表:

1、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
3、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。

碎片内容

OSPF虚链路及tunnel技术

确认删除?
VIP
微信客服
  • 扫码咨询
会员Q群
  • 会员专属群点击这里加入QQ群
客服邮箱
回到顶部