You can aggregate OSPF networks at the border of an OSPF area by using the area range command. You can also aggregate OSPF networks when entering the border of the OSPF domain by using the summary-address command for IP routes and the summary-prefix command for IPv6 routes.
To create an area range:
area range
- host1(config-if)#ip address 2.2.10.1 255.255.255.0
- host1(config-if)#ip address 2.2.11.1 255.255.255.0
secondary
- host1(config)#router ospf 2
- host1(config-router)#network 2.2.0.0 0.0.255.255
area 0
At this point, the OSPF process is configured with two OSPF interfaces. If your router is an ABR, two networks must be summarized: 2.2.10.0/24 and 2.2.11.0/24.
- host1(config-router)#area 0 range 2.2.0.0
255.255.0.0
After you enter this area range command, only the aggregated range 2.2.0.0/16 is going to be summarized.
summary-address
summary-prefix
- host1(config-router)#summary-address 10.1.0.0
255.255.0.0