Configuring ospf virtual links, Network requirements, Configuration procedure – H3C Technologies H3C S7500E Series Switches User Manual
Page 136
4-67
Configuring OSPF Virtual Links
Network requirements
z
In the following figure, Area 2 has no direct connection to Area 0, and Area 1 acts as the Transit
Area to connect Area 2 to Area 0 via a configured virtual link between Switch B and Switch C.
z
After configuration, Switch B can learn routes to Area 2.
Figure 4-27 Network diagram for OSPF virtual link configuration
Area 0
Swtich A
Vlan-int300
10.1.1.1/24
Swtich B
Switch C
Switch D
Area 2
Vlan-int300
10.1.1.2/24
Vlan-int100
10.3.1.2/24
Vlan-int100
10.3.1.1/24
Vir
tua
l li
nk
Vlan-int200
10.2.1.1/24
Vlan-int200
10.2.1.2/24
Area 1
Configuration procedure
1) Configure IP addresses for interfaces (omitted)
2) Configure OSPF basic functions
# Configure Switch A.
[SwitchA] ospf 1 router-id 1.1.1.1
[SwitchA-ospf-1] area 0
[SwitchA-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255
[SwitchA-ospf-1-area-0.0.0.0] quit
# Configure Switch B.
[SwitchB] ospf 1 router-id 2.2.2.2
[SwitchB-ospf-1] area 0
[SwitchB-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255
[SwitchB-ospf-1-area-0.0.0.0] quit
[SwitchB-ospf-1] area 1
[SwitchB–ospf-1-area-0.0.0.1] network 10.2.1.0 0.0.0.255
[SwitchB–ospf-1-area-0.0.0.1] quit
# Configure Switch C.
[SwitchC] ospf 1 router-id 3.3.3.3
[SwitchC-ospf-1] area 1
[SwitchC-ospf-1-area-0.0.0.1] network 10.2.1.0 0.0.0.255
[SwitchC-ospf-1-area-0.0.0.1] quit
[SwitchC-ospf-1] area 2
[SwitchC–ospf-1-area-0.0.0.2] network 10.3.1.0 0.0.0.255
[SwitchC–ospf-1-area-0.0.0.2] quit
# Configure Switch D.
[SwitchD] ospf 1 router-id 4.4.4.4