虛鏈路的兩個應用
1.解決骨幹區域被分割的問題
2.解決非骨幹區域和非骨幹區域不直接相連的問題
R1
int l 0
int l 0
ip add 1.1.1.1 255.255.255.0
int fa 1/0
ip add 12.1.1.1 255.255.255.0
no shut
R2
int l 0
ip add 2.2.2.2 255.255.255.0
int fa 0/0
ip add 12.1.1.2 255.255.255.0
no shut
int fa 1/0
ip add 23.1.1.2 255.255.255.0
no shut
R3
int l 0
ip add 3.3.3.3 255.255.255.0
no shut
int fa 0/0
ip add 23.1.1.3 255.255.255.0
no shut
int fa 1/0
ip add 34.1.1.3 255.255.255.0
no shut
R4
int lo 0
ip add 4.4.4.4 255.255.255.0
int fa 0/0
ip add 34.1.1.4 255.255.255.0
no shut
=====================================
R1
router ospf 10
router-id 1.1.1.1
net 1.1.1.1 0.0.0.0 a 0
net 12.1.1.0 0.0.0.255 a 0
R2
router ospf 10
router-id 2.2.2.2
net 2.2.2.0 0.0.0.255 a 0
net 12.1.1.0 0.0.0.255 a 0
net 23.1.1.0 0.0.0.255 a 1
R3
router ospf 10
router-id 3.3.3.3
net 3.3.3.0 0.0.0.255 a 0
net 23.1.1.0 0.0.0.255 a 1
net 34.1.1.0 0.0.0.255 a 0
R4
router ospf 10
router-id 4.4.4.4
net 4.4.4.0 0.0.0.255 a 0
net 34.1.1.0 0.0.0.255 a 0
R1
R2
R3
R4
show ip route
查看路由表是否正常?
=======================================
解決問題:
R2
router ospf 10
area 1 virtual-link 3.3.3.3
#area 1指的是虛鏈路穿越的區域是區域1 ,3.3.3.3指的是對端邊界路由器的router-id
R3
router ospf 10
area 2 virtual-link 2.2.2.2
#area 1指的是虛鏈路穿越的區域是區域1 ,2.2.2.2指的是對端邊界路由器的router-id
======================================
驗證
R1
R2
R3
R4
show ip route
R1
int l 0
int l 0
ip add 1.1.1.1 255.255.255.0
int fa 1/0
ip add 12.1.1.1 255.255.255.0
no shut
R2
int l 0
ip add 2.2.2.2 255.255.255.0
int fa 0/0
ip add 12.1.1.2 255.255.255.0
no shut
int fa 1/0
ip add 23.1.1.2 255.255.255.0
no shut
R3
int l 0
ip add 3.3.3.3 255.255.255.0
no shut
int fa 0/0
ip add 23.1.1.3 255.255.255.0
no shut
int fa 1/0
ip add 34.1.1.3 255.255.255.0
no shut
R4
int lo 0
ip add 4.4.4.4 255.255.255.0
int fa 0/0
ip add 34.1.1.4 255.255.255.0
no shut
R1
router ospf 10
router-id 1.1.1.1
net 1.1.1.1 0.0.0.0 a 0
net 12.1.1.0 0.0.0.255 a 0
R2
router ospf 10
router-id 2.2.2.2
net 2.2.2.0 0.0.0.255 a 0
net 12.1.1.0 0.0.0.255 a 0
net 23.1.1.0 0.0.0.255 a 1
R3
router ospf 10
router-id 3.3.3.3
net 3.3.3.0 0.0.0.255 a 1
net 23.1.1.0 0.0.0.255 a 1
net 34.1.1.0 0.0.0.255 a 2
R4
router ospf 10
router-id 4.4.4.4
net 4.4.4.0 0.0.0.255 a 2
net 34.1.1.0 0.0.0.255 a 2
R1
R2
R3
R4
show ip route
查看路由表是否正常?
=======================================
解決問題:
R2
router ospf 10
area 1 virtual-link 3.3.3.3
#area 1指的是虛鏈路穿越的區域是區域1 ,3.3.3.3指的是對端邊界路由器的router-id
R3
router ospf 10
area 2 virtual-link 2.2.2.2
#area 1指的是虛鏈路穿越的區域是區域1 ,2.2.2.2指的是對端邊界路由器的router-id
======================================
驗證
R1
R2
R3
R4
show ip route
問題:
虛鏈路能跨越兩個區域建立嗎?
非骨幹區域到骨幹區域相隔兩個區域,這個問題怎麼解決?
虛鏈路配置在什麼路由器上?
虛鏈路接口是屬於區域0的?