Operation Manual – Routing Protocol 
Quidway S3900 Series Ethernet Switches-Release 1510  Chapter 4  OSPF Configuration
 
Huawei Technologies Proprietary 
4-30 
II. Network diagram 
152.1.1.1/24
196.1.1.2/24
Sw itch A
1.1.1.1
Sw itc h B
2.2.2.2
Virtual
link
197.1.1.2/24
Area 2
Area 1
Area 0
Sw itch C
3.3.3.3
197.1.1.1/24
196.1.1.1/24
152.1.1.1/24
196.1.1.2/24
Sw itch A
1.1.1.1
Sw itc h B
2.2.2.2
Virtual
link
197.1.1.2/24
Area 2
Area 1
Area 0
Sw itch C
3.3.3.3
197.1.1.1/24
196.1.1.1/24
 
Figure 4-4 OSPF virtual link configuration 
III. Configuration procedure 
# Configure Switch A. 
<Switch A> system-view  
[Switch A] interface Vlan-interface 1 
[Switch A-Vlan-interface1] ip address 196.1.1.1 255.255.255.0 
[Switch A-Vlan-interface1] quit 
[Switch A] router id 1.1.1.1 
[Switch A] ospf 
[Switch A-ospf-1] area 0 
[Switch A-ospf-1-area-0.0.0.0] network 196.1.1.0 0.0.0.255 
# Configure Switch B. 
<Switch B> system-view 
[Switch B] interface vlan-interface 7 
[Switch B-Vlan-interface7] ip address 196.1.1.2 255.255.255.0 
[Switch B-Vlan-interface7] quit 
[Switch B] interface vlan-interface 8 
[Switch B-Vlan-interface8] ip address 197.1.1.2 255.255.255.0 
[Switch B] router id 2.2.2.2 
[Switch B] ospf 
[Switch B-ospf-1] area 0 
[Switch B-ospf-1-area-0.0.0.0] network 196.1.1.0 0.0.0.255 
[Switch B-ospf-1-area-0.0.0.0] quit 
[Switch B-ospf-1] area 1