Destination/Mask
0.0.0.0/32
10.0.0.0/8
11.2.1.0/24
11.2.1.0/32
11.2.1.2/32
11.2.1.255/32
127.0.0.0/8
127.0.0.0/32
127.0.0.1/32
127.255.255.255/32
224.0.0.0/4
224.0.0.0/24
255.255.255.255/32
The output shows that routes 10.1.1.0/24, 10.2.1.0/24, 10.3.1.0/24 and 10.4.1.0/24 are
summarized into a single route 10.0.0.0/8.
OSPF stub area configuration example
Network requirements
Enable OSPF on all routers, and 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 advertised LSAs without influencing reachability.
•
Figure 25 Network diagram
Configuration procedure
1.
Configure IP addresses for interfaces. (Details not shown.)
2.
Enable OSPF (see
3.
Configure route redistribution:
# 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
Proto
Pre
Cost
Direct 0
0
O_ASE2 150
2
Direct 0
0
Direct 0
0
Direct 0
0
Direct 0
0
Direct 0
0
Direct 0
0
Direct 0
0
Direct 0
0
Direct 0
0
Direct 0
0
Direct 0
0
"Basic OSPF configuration
103
NextHop
127.0.0.1
11.2.1.1
11.2.1.2
11.2.1.2
127.0.0.1
11.2.1.2
127.0.0.1
127.0.0.1
127.0.0.1
127.0.0.1
0.0.0.0
0.0.0.0
127.0.0.1
example").
Interface
InLoop0
GE1/0
GE1/0
GE1/0
InLoop0
GE1/0
InLoop0
InLoop0
InLoop0
InLoop0
NULL0
NULL0
InLoop0