R3303-HP HSR6800 Routers Layer 3 - IP Routing Configuration Guide

101
Configuring an OSPF stub area
Network requirements
Enable OSPF on all routers, split the AS into three areas.
Configure Router A and Router B as ABRs to forward routing information between areas.
Configure Router D as the ASBR to redistribute static routes.
Configure Area 1 as a stub area to reduce LSAs advertised without influencing reachability.
Figure 25 Network diagram
Configuration procedure
1. Configure IP addresses for interfaces. (Details not shown.)
2. Configure OSPF basic functions (see "Configuring OSPF basic functions").
3. Configure Router D to redistribute static routes:
<RouterD> system-view
[RouterD] ip route-static 3.1.2.1 24 10.5.1.2
[RouterD] ospf
[RouterD-ospf-1] import-route static
[RouterD-ospf-1] quit
# Display ABR/ASBR information on Router C.
<RouterC> display ospf abr-asbr
OSPF Process 1 with Router ID 10.4.1.1
Routing Table to ABR and ASBR
Type Destination Area Cost Nexthop RtType
Intra 10.2.1.1 0.0.0.1 3 10.2.1.1 ABR
Inter 10.3.1.1 0.0.0.1 5 10.2.1.1 ABR
Inter 10.5.1.1 0.0.0.1 7 10.2.1.1 ASBR
# Display OSPF routing information on Router C.
<RouterC> display ospf routing
OSPF Process 1 with Router ID 10.4.1.1
Routing Tables