交换机与路由技术-29-OSPF虚链路

目录

一、虚链路

1.1 概念

1.2 目的

1.3 虚链路穿越区域的要求

1.4 虚链路实验配置


一、虚链路

1.1 概念

在两台ABR区域间路由器之间,穿越一个非骨干区域建立一条逻辑上的连接通道。

1.2 目的

指一条通过一个非骨干区域连接到骨干区域的链路

区域23没有物理链路与骨干区域直接相连,如果没有配置虚链路,骨干区域无法学习到区域23的路由信息。

通过一个非骨干区域连接一个分段的骨干区域

1.3 虚链路穿越区域的要求

虚链路必须配置在两台ABR之间

传送区域不能是末梢区域,因为末梢区域只有一条默认路由。

虚链路的稳定性取决于当前区域的稳定性

虚链路可以提供链路冗余

1.4 虚链路实验配置

第一步:搭建拓扑、划分网段、配置IP

第二步:宣告OSPF网段和区域指定router-Id

以路由器6为例

Router(config)#route ospf 10

Router(config-router)#network 192.168.10.0 0.0.0.255 area 2

Router(config-router)#network 192.168.20.0 0.0.0.255 area 1

/* router-id也可以不配置使用默认的即可,该操作在ABR上*/

Router(config-router)#router-id 1.1.1.1

/* 重启ospf使得ID配置生效 */

Router(config-router)# clear ip ospf process

第三步:配置虚链路

在两个ABR上配置虚链路

路由器0

Router(config)#

Router(config)#router ospf 10

Router(config-router)#area 1 virtual-link 2.2.2.2

Router(config-router)#

路由器1

Router(config)#

Router(config)#router ospf 10

Router(config-router)#area 1 virtual-link 1.1.1.1

Router(config-router)#

命令解析

Router(config-router)#area 1 virtual-link 2.2.2.2

“1”是需要穿越的区域ID

“2.2.2.2”是对端ABR路由器的router-id

Router-ID可以使用命令直接获取

Router#show ip ospf neighbor

查看路由表

查看虚链路信息

Router#show ip ospf virtual-links

猜你喜欢

转载自blog.csdn.net/weixin_46232917/article/details/127031281