OSPF routing protocol - virtual link configuration

Virtual link topology

OSPF routing protocol - virtual link configuration

First, the deployment server environment

1, R1 router:

Configure IP address information for each interface, loopback adapter arranged fixed IP address, the OSPF protocol configuration information.
OSPF routing protocol - virtual link configuration


conf t
int f0/0
ip add 192.168.10.1 255.255.255.0
no shut
int f0/1
ip add 192.168.20.1 255.255.255.0
no shut
ex
int lo 0                                
ip add 1.1.1.1 255.255.255.255        
no shut
ex
router ospf 1                                             
router-id 1.1.1.1                   
network 192.168.10.0 0.0.0.255 area 2  
network 192.168.20.0 0.0.0.255 area 2  

2, R2 router

Configure IP address information for each interface, loopback adapter arranged fixed IP address, the OSPF protocol configuration information, creates a virtual link.
OSPF routing protocol - virtual link configuration


conf t
int f0/0
ip add 192.168.20.2 255.255.255.0
no shut
int f0/1
ip add 192.168.30.1 255.255.255.0
no shut
ex
int lo 0                                
ip add 2.2.2.2 255.255.255.255          
no shut
ex
router ospf 1                                
router-id 2.2.2.2                       
network 192.168.20.0 0.0.0.255 area 2   
network 192.168.30.0 0.0.0.255 area 1   
ex
router ospf 1                           
area 1 virtual-link 3.3.3.3           

3, R3 router:

Configure IP address information for each interface, loopback adapter arranged fixed IP address, the OSPF protocol configuration information, creates a virtual link.
OSPF routing protocol - virtual link configuration


conf t
int f0/0
ip add 192.168.30.2 255.255.255.0
no shut
ex
int f0/1
ip add 192.168.40.1 255.255.255.0
no shut
int lo 0
ip add 3.3.3.3 255.255.255.255
no shut
ex
router ospf 1                        
router-id 3.3.3.3                     
network 192.168.30.0 0.0.0.255 area 1 
network 192.168.40.0 0.0.0.255 area 0 
ex
router ospf 1                       
area 1 virtual-link 2.2.2.2  

4, R4 router:

Configure IP address information for each interface, loopback adapter arranged fixed IP address, the OSPF protocol configuration information.
OSPF routing protocol - virtual link configuration


conf t
int f0/0
ip add 192.168.40.2 255.255.255.0
no shut
int f0/1
ip add 192.168.50.1 255.255.255.0
no shut
ex
int lo 0
ip add 4.4.4.4 255.255.255.255
no shut
ex
router ospf 1                         
router-id 4.4.4.4                
network 192.168.40.0 0.0.0.255 area 0  
network 192.168.50.0 0.0.0.255 area 0 

Second, the deployment of the client environment

1, PC1 configure the IP address and gateway information

OSPF routing protocol - virtual link configuration

2, PC2 configure the IP address and gateway information

OSPF routing protocol - virtual link configuration

Third, the whole network interoperability verification

OSPF routing protocol - virtual link configuration

PC1 and PC2 can communicate through a virtual link, the success of the experiment!

Guess you like

Origin blog.51cto.com/14449521/2437945