network

Use this command to configure area IDs for OSPF interfaces.

Syntax

network ip-address wildcard-mask area area-id
no network ip-address wildcard-mask area area-id

Parameters

ip-address Specifies the IP address of an interface or a group of interfaces within the network address range.
wildcard-mask Specifies the IP-address-type mask that includes “don't care” bits.
area area-id Specifies the area-id to be associated with the OSPF address range. Valid values are decimal values between 0 - 4294967295 or an IP address. A subnet address can be specified as the area-id to associate areas with IP subnets.

Defaults

None.

Mode

OSPF router configuration.

Usage

OSPF network wildcard masks are reverse networks. This means that wherever there is a 1 in a regular netmask, use a 0 in a wildcard mask. For example, if the network mask is 255.255.255.0 (/24), specify a wildcard mask of 000.000.000.255.

The “no” form of this command removes OSPF routing for interfaces identified by the IP address and mask parameters.

Example

This example shows how to configure IP address 182.127.62.1 255.255.255.224 as OSPF area 0:

System(rw-config)->router ospf 1
System(rw-config-ospf-1)->network 182.127.62.1 0.0.0.31 area 0