area <AREA-ID> range

Syntax

area <AREA-ID> range <IP-PREFIX> type {inter-area | nssa} [no-advertise]

no area <AREA-ID> range <IP-PREFIX> type {inter-area | nssa} [no-advertise]

Description

Summarizes the routes with the matching address or masks. This command only works for border routers.

The no form of this command unsets the route summarization for the configured IPv4 prefix address on the ABR. When using the no form of the command with the no-advertise option, enables advertising this range to other areas.

Command context

config-ospf

Parameters

<AREA-ID>
Specifies the area ID is one of the following formats.
  • OSPF area identifier in IPv4 address format. Format: A.B.C.D.

  • OSPF area identifier in decimal format. Range: 0-4294967295.

range <IP-PREFIX>

Specifies summarizing routes matching the area range prefix/mask.

type {inter-area | nssa}

Specifies the type this address aggregation applies to as either inter-area range prefix or NSSA range prefix.

no-advertise

Specifies the address range status as DoNotAdvertise (do not advertise this range to other areas).

Authority

Administrators

Examples

Summarizing inter-area or NSSA paths:

switch# configure terminal
switch(config)# router ospf 1
switch(config-ospf-1)# area 1 range 192.77.114.0/24 type inter-area
switch(config-ospf-1)# area 1 range 192.77.114.0/24 type nssa
switch(config-ospf-1)# area 1 range 192.77.114.0/24 type nssa no-advertise

Unsetting summarization:

switch# configure terminal
switch(config)# router ospf 1
switch(config-ospf-1)# no area 1 range 192.77.114.0/24 type inter-area
switch(config-ospf-1)# no area 1 range 192.77.114.0/24 type nssa
switch(config-ospf-1)# no area 1 range 192.77.114.0/24 type nssa no-advertise