ospf--vlink

在区域2要穿过的区域上配置虚链路;该实验中区域2要穿过区域1与骨干区域通信;

 


配置过程:
R1:
interface GigabitEthernet0/0/1
ip address 10.1.14.1 255.255.255.0
ospf 1
area 0.0.0.0
network 10.1.14.0 0.0.0.255

R2:
interface GigabitEthernet0/0/0
ip address 10.1.24.2 255.255.255.0
ospf 1
area 0.0.0.0
network 10.1.24.0 0.0.0.255

R4:
interface GigabitEthernet0/0/0
ip address 10.1.24.4 255.255.255.0

interface GigabitEthernet0/0/1
ip address 10.1.14.4 255.255.255.0

interface GigabitEthernet0/0/2
ip address 10.1.45.4 255.255.255.0

ospf 1 router-id 4.4.4.4
area 0.0.0.0
network 10.1.14.0 0.0.0.255
network 10.1.24.0 0.0.0.255
area 0.0.0.1
network 10.1.45.0 0.0.0.255
vlink-peer 5.5.5.5 // 配置虚链路5.5.5.5为区域1中R4的邻居的router-id

R5:
interface GigabitEthernet0/0/0
ip address 10.1.56.5 255.255.255.0

interface GigabitEthernet0/0/2
ip address 10.1.45.5 255.255.255.0

ospf 1 router-id 5.5.5.5
area 0.0.0.1
network 10.1.45.0 0.0.0.255
vlink-peer 4.4.4.4 // 配置虚链路4.4.4.4为区域1的邻居的router-id
area 0.0.0.2
network 10.1.56.0 0.0.0.255

R6:
interface GigabitEthernet0/0/0
ip address 10.1.56.6 255.255.255.0

interface GigabitEthernet4/0/0
ip address 1.1.1.254 255.255.255.0

interface GigabitEthernet4/0/1
ip address 2.2.2.254 255.255.255.0

interface GigabitEthernet4/0/2
ip address 3.3.3.254 255.255.255.0

ospf 1
import-route direct //发布直连路由
area 0.0.0.2
network 10.1.56.0 0.0.0.255
————————————————

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。

原文链接:https://blog.csdn.net/breakyu/article/details/107956671

posted @ 2024-05-20 15:15  yujin123456  阅读(19)  评论(0编辑  收藏  举报