Add OSPF Range (ADDOSPFRNG)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The Add OSPF Range (ADDOSPFRNG) command adds a range to an OSPF areas. OSPF areas are 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 serves as transit areas for virtual links.

Restrictions:

Top

Parameters

Keyword Description Choices Notes
AREA Area identifier Character value Required, Positional 1
IPADRRNG IP address range Character value Required, Positional 2
SUBNETMASK Subnet mask Character value, *HOST Optional
PFXLEN Prefix length 1-128, 64 Optional
ADVERTISE Advertise *YES, *NO Optional
Top

Area identifier (AREA)

Specifies the area identifier for which the range is to be added. 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.
Top

IP address range (IPADRRNG)

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

This is a required parameter.

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.

Top

Subnet mask (SUBNETMASK)

Specifies the subnet mask with respect to the network range specified for the IP address range (IPADRRNG) parameter. Subnet mask is ignored for IPv6 ranges.

*HOST
The subnet mask value used should be 255.255.255.255.
character-value
Specify the mask for the network subnet field and host address field of the internet address that defines a subnetwork. The subnet mask is in the form nnn.nnn.nnn.nnn, where nnn is a decimal number ranging from 0 through 255. The subnet mask must mask off all bits of the network class's network ID portion of the internet address.

For example, 255.255.255.0 could define a subnet mask for an interface with a Class B internet address. In this example, the first two octets must be 1 bits because these octets define the network ID portion of the Class B internet address. The third octet of this subnet mask defines the actual subnet mask ID portion of the interface's internet address. It is also all 1 bits. This leaves the fourth octet to define the host ID portion of the interface's internet address.

Top

Prefix length (PFXLEN)

Specifies how much of the leftmost portion of an IPv6 address is the subnet prefix. This parameter only is valid is the internet address range is an IPv6 address.

64
The default is 64 since most of the IPv6 address have a 64-bit interface ID.
1-128
Specify the number of bits of the IPv6 internet address to use as the subnet prefix.
Top

Advertise (ADVERTISE)

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

*YES
This range will be advertised to other areas.
*NO
This range will not be advertised to other areas.
Top

Examples

Example 1:Adding a Range to an OSPF IPv4 Area

ADDOSPFRNG   AREA('1.1.1.1')  IPADRRNG('128.185.0.0')
             SUBNETMASK('255.255.0.0')

The command adds a range to an OSPF IPv4 area. If the OSPF area were to consist of all subnets of class B network 128.185.0.0, it would be defined as consisting of a single address range. The address range would be specified as an address of 128.185.0.0 with a mask of 255.255.0.0. Outside of the area, the entire subnetted network would be advertise as a single route to network 128.185.0.0.

Example 2:Adding a Range to an OSPF IPv6 Area

ADDOSPFRNG   AREA('67.67.67.67')  IPADRRNG('2001:0db8:1:2::')

The command adds a range to an OSPF IPv4 area. If an IPv6 OSPF area were to consist of the prefix 2001:0db8:1:2::/64, all addresses falling within that prefix would be defined as consisting of a single address range. The address range would be specified as an address of 2001:0db8:1:2:: together with a prefix length of 64. Outside of the area, all addresses that fall within that prefix would be advertised as a single route to prefix 2001:0db8:1:2::/64.

Top

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.
TCP652B
OSPF range &1 has not been added in configuration file. Fails with reason code &2.
TCP9999
Internal system error in program &1.
Top