# Configure route summarization on Switch B to advertise a summary route 10.0.0.0/8.
[SwitchB-ospf-1] asbr-summary 10.0.0.0 8
# Display the IP routing table on Switch A.
[SwitchA] display ip routing-table
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 switches, and split the AS into three areas.
•
Configure Switch A and Switch B as ABRs to forward routing information between areas.
•
•
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 25 Network diagram
Switch A
Vlan-int200
10.2.1.1/24
Vlan-int200
Area 1
10.2.1.2/24
Stub
Switch C
Configuration procedure
1.
Configure IP addresses for interfaces. (Details not shown.)
Destinations : 13
Proto
Direct 0
OSPF
Direct 0
Direct 0
Direct 0
Direct 0
Direct 0
Direct 0
Direct 0
Direct 0
Direct 0
Direct 0
Direct 0
Area 0
Vlan-int100
10.1.1.1/24
Vlan-int100
10.1.1.2/24
Vlan-int300
Vlan-int300
10.4.1.1/24
10.5.1.1/24
Routes : 13
Pre
Cost
0
150
2
0
0
0
0
0
0
0
0
0
0
0
Switch B
Vlan-int200
10.3.1.1/24
Vlan-int200
Area 2
10.3.1.2/24
ASBR
Switch D
104
NextHop
Interface
127.0.0.1
InLoop0
11.2.1.1
Vlan100
11.2.1.2
Vlan100
11.2.1.2
Vlan100
127.0.0.1
InLoop0
11.2.1.2
Vlan100
127.0.0.1
InLoop0
127.0.0.1
InLoop0
127.0.0.1
InLoop0
127.0.0.1
InLoop0
0.0.0.0
NULL0
0.0.0.0
NULL0
127.0.0.1
InLoop0