| 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 |
| 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 |
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.
| Top |
Specifies the common subnet portion of internet addresses in this range.
This is a required parameter.
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 the subnet mask with respect to the network range specified for the IP address range (IPADRRNG) parameter. Subnet mask is ignored for IPv6 ranges.
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 |
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.
| Top |
Specifies whether this range will be advertised to other areas or not.
| Top |
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 |
*ESCAPE Messages
| Top |