拓?fù)淙缦聢D所示:
如上圖所示,R1和R2相接為Area0,R2和R3相接為Area1,R3和R4相接為Area2。由于Area2與Area0直接隔著一個非骨干區(qū)域(Area1),無法相互傳遞路由信息,因此需要在R2和R3之間通過虛鏈路技術(shù)搭建一條邏輯通道,使兩臺ABR(區(qū)域邊界路由器)之間可以直接傳遞路由信息(3類LSA)。具體配置如下:
R2:
interface Loopback0
ip address 2.2.2.2 255.255.255.255
exit
interface FastEthernet0/0
ip address 12.1.1.2 255.255.255.0
no sh
exit
interface FastEthernet0/1
ip address 23.1.1.2 255.255.255.0
no sh
exit
router ospf 1
router-id 2.2.2.2
area 1 virtual-link 3.3.3.3 //在R2和R3(ABR)之間,建立一條邏輯的連接通道
network 2.2.2.2 0.0.0.0 area 1
network 12.1.1.0 0.0.0.255 area 0
network 23.1.1.0 0.0.0.255 area 1
R3:
interface Loopback0
ip address 3.3.3.3 255.255.255.255
exit
interface FastEthernet0/0
ip address 34.1.1.3 255.255.255.0
no sh
exit
interface FastEthernet0/1
ip address 23.1.1.3 255.255.255.0
no sh
exit
router ospf 1
router-id 3.3.3.3
area 1 virtual-link 2.2.2.2
network 3.3.3.3 0.0.0.0 area 1
network 23.1.1.0 0.0.0.255 area 1
network 34.1.1.0 0.0.0.255 area 2