H3C Technologies H3C WX6000 Series Access Controllers User Manual
Page 283
25-49
[Switch-ospf-1] area 2
[Switch–ospf-1-area-0.0.0.2] network 172.16.0.0 0.0.255.255
[Switch–ospf-1-area-0.0.0.2] quit
# Display OSPF routing information on AC.
[AC] display ospf routing
OSPF Process 1 with Router ID 1.1.1.1
Routing Tables
Routing for Network
Destination Cost Type NextHop AdvRouter Area
10.0.0.0/8 1 Stub 10.1.1.1 1.1.1.1 0.0.0.0
192.168.1.0/24 1562 Stub 192.168.1.1 1.1.1.1 0.0.0.1
Total Nets: 2
Intra Area: 2 Inter Area: 0 ASE: 0 NSSA: 0
Since Area 2 has no direct connection to Area 0, the OSPF routing table of AC has no route to Area 2.
3) Configure a virtual link
# Configure AC.
[AC] ospf
[AC-ospf-1] area 1
[AC-ospf-1-area-0.0.0.1] vlink-peer 2.2.2.2
[AC-ospf-1-area-0.0.0.1] quit
[AC-ospf-1] quit
# Configure Switch.
[Switch] ospf 1
[Switch-ospf-1] area 1
[Switch-ospf-1-area-0.0.0.1] vlink-peer 1.1.1.1
[Switch-ospf-1-area-0.0.0.1] quit
# Display OSPF routing information on AC.
[AC] display ospf routing
OSPF Process 1 with Router ID 1.1.1.1
Routing Tables
Routing for Network
Destination Cost Type NextHop AdvRouter Area
172.16.1.1/16 1563 Inter 192.168.1.2 2.2.2.2 0.0.0.0
10.0.0.0/8 1 Stub 10.1.1.1 1.1.1.1 0.0.0.0
192.168.1.0/24 1562 Stub 192.168.1.1 1.1.1.1 0.0.0.1
Total Nets: 3
Intra Area: 2 Inter Area: 1 ASE: 0 NSSA: 0
AC has learned the route 172.16.1.1/16 to Area 2.