ospf--vlink

yujin123456發表於2024-05-20

在區域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