H3C Technologies H3C SR8800 User Manual
Page 131
115
[RouterA-ospf-1-area-0.0.0.1] quit
[RouterA-ospf-1] quit
# Configure Router C.
<RouterC> system-view
[RouterC] ospf
[RouterC-ospf-1] area 1
[RouterC-ospf-1-area-0.0.0.1] stub
[RouterC-ospf-1-area-0.0.0.1] quit
[RouterC-ospf-1] quit
# Display routing information on Router C.
[RouterC] display ospf routing
OSPF Process 1 with Router ID 10.4.1.1
Routing Tables
Routing for Network
Destination Cost Type NextHop AdvRouter Area
0.0.0.0/0 1 Inter 10.2.1.1 10.2.1.1 0.0.0.1
10.2.1.0/24 1 Transit 10.2.1.2 10.2.1.1 0.0.0.1
10.3.1.0/24 3 Inter 10.2.1.1 10.2.1.1 0.0.0.1
10.4.1.0/24 1 Stub 10.4.1.1 10.4.1.1 0.0.0.1
10.5.1.0/24 4 Inter 10.2.1.1 10.2.1.1 0.0.0.1
10.1.1.0/24 2 Inter 10.2.1.1 10.2.1.1 0.0.0.1
Total Nets: 6
Intra Area: 2 Inter Area: 4 ASE: 0 NSSA: 0
NOTE:
After the area where Router C resides is configured as a Stub area, a default route takes the place of the
external route.
# Filter Type-3 LSAs out the Stub area.
[RouterA] ospf
[RouterA-ospf-1] area 1
[RouterA-ospf-1-area-0.0.0.1] stub no-summary
[RouterA-ospf-1-area-0.0.0.1] quit
# Display OSPF routing information on Router C.
[RouterC] display ospf routing
OSPF Process 1 with Router ID 10.4.1.1
Routing Tables
Routing for Network
Destination Cost Type NextHop AdvRouter Area
0.0.0.0/0 1 Inter 10.2.1.1 10.2.1.1 0.0.0.1
10.2.1.0/24 1 Transit 10.2.1.2 10.4.1.1 0.0.0.1
10.4.1.0/24 1 Stub 10.4.1.1 10.4.1.1 0.0.0.1