[RouterA-ospf-1-area-0.0.0.1] quit
# Display OSPF routing information on Router C.
[RouterC] 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
After this configuration, inter-area routes are removed, and only one external route (a default route)
exists.
OSPF NSSA area configuration example
Network requirements
•
Configure OSPF on all routers and split AS into three areas.
Configure Router A and Router B as ABRs to forward routing information between areas.
•
Configure Area 1 as an NSSA area and configure Router C as an ASBR to redistribute static routes
•
into the AS.
Figure 26 Network diagram
Router A
Area 1
Eth1/1
NSSA
10.2.1.2/24
Router C
Configuration procedure
1.
Configure IP addresses for interfaces. (Details not shown.)
2.
Enable OSPF (see
3.
Configure Area 1 as an NSSA area:
# Configure Router A.
<RouterA> system-view
[RouterA] ospf
[RouterA-ospf-1] area 1
OSPF Process 1 with Router ID 10.4.1.1
Routing Tables
Cost
4
3
3
Inter Area: 1
Area 0
Eth1/1
10.1.1.1/24
Eth1/1
10.1.1.2/24
Eth1/2
10.2.1.1/24
ASBR
Eth1/2
10.5.1.1/24
10.4.1.1/24
"Basic OSPF configuration
Type
NextHop
Inter
10.2.1.1
Transit 10.2.1.2
Stub
10.4.1.1
ASE: 0
NSSA: 0
Router B
Eth1/2
10.3.1.1/24
Eth1/1
Area 2
10.3.1.2/24
Eth1/2
Router D
example").
105
AdvRouter
10.2.1.1
0.0.0.1
10.4.1.1
0.0.0.1
10.4.1.1
0.0.0.1
Area