1. 程式人生 > >OSPF虛鏈路配置實驗

OSPF虛鏈路配置實驗

OSPF虛鏈路配置
1.組網需求
如圖所示,Aea2沒有與骨幹區域直接相連。Area1被用作傳輸區域( Transit Area來連線Area2和Area0。
Area1區域為虛連線。
案例拓撲圖
2.配置思路
(1)在各路由器上配置OSPF基本功能
(2)在AR2和 AR3上配置虛連線,使非骨幹區域與骨幹區域連通
3.操作步驟
1)配置各介面的|P地址
配置AR1,AR2,AR3,AR4,的介面|P地址。

AR1配置
system-view
[Huawei] sysname RouterA
[RouterA] interface gigabitethernet 0/0/0
[RouterA-GigabitEthernetoy0/0] ip address 10.1.12.1 24
[RouterA-GigabitEtherneto/o/0] quit
[RouterA] interface LoopBack 0
[RouterA-LoopBacko] ip address 10.1.1.1 32
[RouterA-Loop Backo] quit

AR2配置
system-view
int g0/0/0
ip address 10.1.12.2 24
int g0/0/1
ip add 10.1.23.2 24
int lo 0
ip address 10.1.2.2 32

AR3配置
system-view
int g0/0/0
ip address 10.1.23.2 24
int g0/0/1
ip add 10.1.34.3 24
int lo 0
ip address 10.1.3.3 32

AR4配置
system-view
int g0/0/0
ip address 10.1.34.4 24
int lo 0
ip address 10.1.4.4 32

2.配置使能OSPF
在AR1,AR2,AR3,AR4,上使能OSPF.
AR1配置
router id 10.1.1.1
ospf
area 0
network 10.1.12.0 0.0.0.255
quit
在AR3上檢視LSDB,可以看到Aera2區域沒有學到關於Area0區域的路由。
display ospf lsdb
3.配置虛連線
AR2配置
ospf
area 1
vlink-peer 10.1.3.3
q

AR3配置
ospf
area 1
vlink-peer 10.1.2.2
q

4.驗證結果
AR1命令
display ospf lsdb