Previous page Next page

CLI Command

To modify an OSPF interface using the CLI, enter the following command:

(configure router:ospf)# network <ip-address> <wildcard-mask> <area-id>

If you use the network area CLI command to add an interface to an OSPF area, be careful not to enter the IP mask for the <wildcard-mask> variable.

The <wildcard-mask> variable is the inverse of a network mask. Enter a 32-bit number in four-part, dotted decimal format. Place ones in the bit positions that you want to mask.

For example, to enable OSPF on interface 10.10.10.1 (where the network mask is 255.255.255.0) and assign it to area 2.2.2.2, enter: network 10.10.10.1 0.0.0.255 area 2.2.2.2

If you enter the IP network mask (255.255.255.0) instead of the wildcard mask (0.0.0.255), all OSPF interfaces that have 1 for the last octet of their IP address will be added to area 2.2.2.2.


Previous page Next page