Cisco路由器的ospf虚链路路由配置

一 实验拓扑图

Cisco路由器的ospf虚链路路由配置

二 实验目的

通过OSPF虚链路的配置,实现跨区域主机的通信。

三 实验环境

GNS3,Windows10操作系统,SecureCRT8.0

四 实验过程

1.对路由器R1,R2,R3,R4进行接口ip配置
R1:conf t
int f0/0
ip add 192.168.1.1 255.255.255.0
no sh
ex
int f0/1
ip add 192.168.2.1 255.255.255.0
no sh
end
R2:conf t
int f0/0
ip add 192.168.3.1 255.255.255.0
no sh
ex
int f0/1
ip add 192.168.2.2 255.255.255.0
no sh
end
R3:conf t
int f0/0
ip add 192.168.3.2 255.255.255.0
no sh
ex
int f0/1
ip add 192.168.4.1 255.255.255.0
no sh
end
R4:conf t
int f0/0
ip add 192.168.5.1 255.255.255.0
no sh
ex
int f0/1
ip add 192.168.4.2 255.255.255.0
no sh
end

2.对路由器R1,R2,R3,R4进行ospf路由配置:
R1:conf t
int lo 0
ip add 1.1.1.1 255.255.255.255
no sh
ex
router ospf 1
router-id 1.1.1.1
net 192.168.1.0 0.0.0.255 a 2
net 192.168.2.0 0.0.0.255 a 2
end
R2:conf t
int lo 0
ip add 2.2.2.2 255.255.255.255
no sh
ex
router ospf 1
router-id 2.2.2.2
net 192.168.2.0 0.0.0.255 a 2
net 192.168.3.0 0.0.0.255 a 1
end
R3:conf t
int lo 0
ip add 3.3.3.3 255.255.255.255
no sh
ex
router ospf 1
router-id 3.3.3.3
net 192.168.4.0 0.0.0.255 a 0
net 192.168.3.0 0.0.0.255 a 1
end
R4:conf t
int lo 0
ip add 4.4.4.4 255.255.255.255
no sh
ex
router ospf 1
router-id 4.4.4.4
net 192.168.4.0 0.0.0.255 a 0
net 192.168.5.0 0.0.0.255 a 0
end
3.在ABR上配置虚链路使得a2与a0跨区域通信:
R2:conf t
router ospf 1
area 1 vir 3.3.3.3
end
R3:conf t
router ospf 1
area 1 vir 2.2.2.2
end

4.配置主机ip:
PC1:ip 192.168.1.100
PC2:ip 192.168.5.100

五 实验结果

两机相ping,都能ping通,试验完成。
Cisco路由器的ospf虚链路路由配置
Cisco路由器的ospf虚链路路由配置

六 实验总结

虚链路必须配置在两台ABR之间
传送区域不能是一个末梢区域
虚链路的稳定性取决于其经过区域的稳定性
虚链路有助于提升逻辑冗余