area range (OSPF)

To consolidate and summarize routes at an Open Shortest Path First (OSPF) area boundary, use the area range command. To disable this function, use the no form of this command.

area area-id range ip-prefix [ not-advertise ]

no area area-id range ip-prefix [ not-advertise ]

Syntax Description

Identifier for the OSPF area where you want to summarize routes. The area ID can be from 0 to 4294967295 or an IP address.
IP prefix specified as IP address/subnet mask length ( A . B . C . D / LEN ).
(Optional) Sets the address range status to DoNotAdvertise. The Type 3 summary LSA is suppressed, and the component networks remain hidden from other networks.

Command Default


Command Modes

Router configuration mode

Command History

This command was introduced.

Usage Guidelines

Use the area range command only with Area Border Routers (ABRs) to consolidate or summarize routes for an area. The ABR advertises that a single summary route is advertised to other areas and condenses routing information at area boundaries.

You can configure OSPF to summarize addresses for many different sets of address ranges by configuring multiple area range commands.

This command requires the LAN Base Services license.


This example shows how to configure one summary route to be advertised by the ABR to other areas for all hosts on network

switch(config-if)# interface ethernet 1/2
switch(config-if)# ip address
switch(config-if)# ip ospf area 201
switch(config-if)# exit
switch(config)# router ospf 12
switch(config-router)# area 0 range

Related Commands

copy running-config startup-config
Saves the configuration changes to the startup configuration file.
show ip ospf
Displays OSPF information.