[SwitchC] display ospf routing
Routing for network
Destination
0.0.0.0/0
10.2.1.0/24
10.3.1.0/24
10.4.1.0/24
10.5.1.0/24
10.1.1.0/24
Total nets: 6
Intra area: 2
The output shows that a default route replaces the AS external route.
# Configure Area 1 as a totally stub area.
[SwitchA] ospf
[SwitchA-ospf-1] area 1
[SwitchA-ospf-1-area-0.0.0.1] stub no-summary
[SwitchA-ospf-1-area-0.0.0.1] quit
[SwitchA-ospf-1] quit
# Display OSPF routing information on Switch C.
[SwitchC] display ospf routing
Routing for network
Destination
0.0.0.0/0
10.2.1.0/24
10.4.1.0/24
Total nets: 3
Intra area: 2
The output shows that inter-area routes are removed, and only one external route (a default
route) exists on Switch C.
OSPF NSSA area configuration example
Network requirements
As shown in
OSPF Process 1 with Router ID 10.4.1.1
Routing Table
Topology base (MTID 0)
Cost
4
3
7
3
17
5
Inter area: 4
OSPF Process 1 with Router ID 10.4.1.1
Routing Table
Topology base (MTID 0)
Cost
4
3
3
Inter area: 1
Figure
28:
Type
NextHop
Inter
10.2.1.1
Transit 0.0.0.0
Inter
10.2.1.1
Stub
10.4.1.1
Inter
10.2.1.1
Inter
10.2.1.1
ASE: 0
NSSA: 0
Type
NextHop
Inter
10.2.1.1
Transit 0.0.0.0
Stub
10.4.1.1
ASE: 0
NSSA: 0
114
AdvRouter
Area
10.2.1.1
0.0.0.1
10.2.1.1
0.0.0.1
10.2.1.1
0.0.0.1
10.4.1.1
0.0.0.1
10.2.1.1
0.0.0.1
10.2.1.1
0.0.0.1
AdvRouter
Area
10.2.1.1
0.0.0.1
10.4.1.1
0.0.0.1
10.4.1.1
0.0.0.1