| Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
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:
| Top |
| 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 |
| Top |
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.
| Top |
Specifies the common subnet portion of internet addresses in this range.
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.
| Top |
Specifies whether this range will be advertised to other areas or not.
| Top |
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.
| Top |
*ESCAPE Messages
| Top |