码迷,mamicode.com
首页 > 其他好文 > 详细

OPSF虚链路配置

时间:2018-04-07 16:12:11      阅读:151      评论:0      收藏:0      [点我收藏+]

标签:OSPF   OSPF虚链路   

技术分享图片
虚链路是指一条通过一个非骨干区域连接到骨干区域的链路
.
R1(config)#router ospf 1
R1(config-router)#rout
R1(config-router)#router-id 1.1.1.1
R1(config-router)#net 1.1.1.1 0.0.0.0 area 0
R1(config-router)#net 12.0.0.0 0.0.0.255 area 0
R1(config-router)#net 192.168.1.0 0.0.0.255 area 0
.
R2(config)#router ospf 1
R2(config-router)#router-id 2.2.2.2
R2(config-router)#net 2.2.2.2 0.0.0.0 area 0
R2(config-router)#net 12.0.0.0 0.0.0.255 area 0
R2(config-router)#net 13.0.0.0 0.0.0.255 area 1
R2(config-router)#net 192.168.2.0 0.0.0.255 area 0
.
R3(config)#router ospf 1
R3(config-router)#router-id 3.3.3.3
R3(config-router)#net 3.3.3.3 0.0.0.0 area 1
R3(config-router)#net 13.0.0.0 0.0.0.255 area 1
R3(config-router)#net 14.0.0.0 0.0.0.255 area 2
R3(config-router)#net 192.168.3.0 0.0.0.255 area 1
.
R4(config)#router ospf 1
R4(config-router)#router-id 4.4.4.4
R4(config-router)#net 4.4.4.4 0.0.0.0 area 2
R4(config-router)#net 14.0.0.0 0.0.0.255 area 2
R4(config-router)#net 192.168.4.0 0.0.0.255 area 2
.
没配置虚链路之前area0和area2之间是无法通信得
.
配置虚链路
R2(config-router)#area 1 virtual-link 3.3.3.3
.
R3(config-router)#area 1 virtual-link 2.2.2.2
.
现在可以通信了

OPSF虚链路配置

标签:OSPF   OSPF虚链路   

原文地址:http://blog.51cto.com/13348945/2095365

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!