area range

Syntax

arearange类型{inter-area | nssa}[no-advertise] no arearange类型{inter-area | nssa}[no-advertise]

Description

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

Thenoform of this command removes route summarization for the configured IPv4 prefix address on the ABR. When using thenoform of the command with theno-advertiseoption, enables advertising this range to other areas.

Command context

config-ospf -

Parameters

Specifies the area ID is one of the following formats.
  • OSPF区域identifier in IPv4 format (x.x.x.x), wherexis a decimal number from 0 to 255.

  • OSPF区域identifier in decimal format. Range: 0 to 4294967295.

range

Specifies summarizing routes matching the area range prefix/mask.

类型{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 asDoNotAdvertise(do not advertise this range to other areas).

Authority

Administrators or local user group members with execution rights for this command.

Examples

Summarizing inter-area or NSSA paths:

switch(config)#router ospf 1switch(config-ospf-1)#area 1switch(config-ospf-1)#area 2 nssaswitch(config-ospf-1)#area 1 range 192.77.114.0/24 type inter-areaswitch(config-ospf-1)#area 2 range 192.77.114.0/24 type nssaswitch(config-ospf-1)#area 2 range 192.77.114.0/24 type nssa no-advertise

Removing summarization:

switch(config)#router ospf 1switch(config-ospf-1)#no area 1 range 192.77.114.0/24 type inter-areaswitch(config-ospf-1)#no area 2 range 192.77.114.0/24 type nssaswitch(config-ospf-1)#no area 2 range 192.77.114.0/24 type nssa no-advertise