Change OSPF Range (CHGOSPFRNG)

The Change OSPF Range (CHGOSPFRNG) command changes a range for an OSPF area that was previous configured using the Add OSPF Range (ADDOSPFRNG) command. OSPF areas can be defined in terms of address ranges. External to the area, a single route is advertised for each address range. Ranges can be defined to control which routes are advertised external to an area. When OSPF is configured not to advertise the range, no inter-area routes are advertised for routes that fall within the range. Ranges cannot be used for areas that serve as transit areas for virtual links. This command can also be used to change the advertise option of an existing range.

Restrictions:

Parameters

Keyword Description Choices Notes
AREA Area identifier Character value Required, Key, Positional 1
IPADRRNG IP address range Character value, *SAME Optional, Key
ADVERTISE Advertise *SAME, *YES, *NO Optional

Area identifier (AREA)

Specifies the area identifier for which the range is to be changed. The area must have been defined by running the Add OSPF Area (ADDOSPFARA) command.

This is a required parameter.

character-value
Specify the internet address for the OSPF area in the form a.a.a.a where a is a decimal number between 1 and 255.

IP address range (IPADRRNG)

Specifies the common subnet portion of internet addresses in this range.

*SAME
Current IP address range is used.
character-value
An IPv4 internet address is specified in the form nnn.nnn.nnn.nnn where nnn is a decimal number between 0 and 255.

An IPv6 internet address is specified in the form n:n:n:n:n:n:n:n where n is a hexadecimal number in the range from 0 through X'ffff'. The value "::" indicates that one or more groups of 16 bits are zero.

Advertise (ADVERTISE)

Specifies whether this range will be advertised to other areas or not.

*SAME
Current advertise value is used.
*YES
This range will be advertised to other areas.
*NO
This range will not be advertised to other areas.

Examples

Example 1:Changing the Advertise Option in a Range for an OSPF IPv4 Area

CHGOSPFRNG   AREA('1.1.1.1')  IPADRRNG('128.185.0.0')
             ADVERTISE(*NO)

This command changes the advertise option to *NO in order to not advertise the range to other areas.

Example 2:Changing the Advertise Option in a Range for an OSPF IPv6 Area

CHGOSPFRNG   AREA('67.67.67.67')  IPADRRNG('2001:0db8:1:2::')
             ADVERTISE(*NO)

This command changes the advertise option to *NO in order to not advertise the range to other areas.

Error messages

*ESCAPE Messages

TCP8050
*IOSYSCFG authority required to use &1.
TCP6525
Internet address &1 not valid
TCP1902
Internet address &1 not valid.
TCP1908
Internet address &1 not valid.
TCP652D
OSPF range &1 has not changed in configuration file. Fails with reason code &2.
TCP9999
Internal system error in program &1.