•
Configure Switch D as the ASBR to redistribute static routes.
•
Configure Area 1 as a stub area to reduce advertised LSAs without influencing reachability.
Figure 27 Network diagram
Configuration procedure
Configure IP addresses for interfaces. (Details not shown.)
1.
Configure OSPF basic functions (see
2.
Configure Switch D to redistribute static routes:
3.
<SwitchD> system-view
[SwitchD] ip route-static 3.1.2.1 24 10.5.1.2
[SwitchD] ospf
[SwitchD-ospf-1] import-route static
[SwitchD-ospf-1] quit
# Display ABR/ASBR information on Switch C.
<SwitchC> display ospf abr-asbr
Type
Intra
Inter
Inter
# Display OSPF routing table information on Switch C.
<SwitchC> display ospf routing
Routing for Network
Destination
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
OSPF Process 1 with Router ID 10.4.1.1
Routing Table to ABR and ASBR
Destination
10.2.1.1
10.3.1.1
10.5.1.1
OSPF Process 1 with Router ID 10.4.1.1
Routing Tables
Cost
3
7
3
17
5
"Configuring OSPF basic
Area
Cost
0.0.0.1
3
0.0.0.1
5
0.0.0.1
7
Type
NextHop
Transit 10.2.1.2
Inter
10.2.1.1
Stub
10.4.1.1
Inter
10.2.1.1
Inter
10.2.1.1
92
functions").
Nexthop
RtType
10.2.1.1
ABR
10.2.1.1
ABR
10.2.1.1
ASBR
AdvRouter
Area
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