network (OSPF area view)

Use network to enable OSPF on the interface attached to the specified network in the area.

Use undo network to disable OSPF for the interface attached to the specified network in the area.

Syntax

network ip-address wildcard-mask

undo network ip-address wildcard-mask

Default

OSPF is not enabled for any interface.

Views

OSPF area view

Predefined user roles

network-admin

Parameters

ip-address: Specifies the IP address of a network.

wildcard-mask: Specifies the wildcard mask of the IP address. For example, the wildcard mask of mask 255.0.0.0 is 0.255.255.255.

Usage guidelines

This command enables OSPF on the interface attached to the specified network. The interface's primary IP address must be in the specified network. If only the interface's secondary IP address is in the network, the interface cannot run OSPF.

Examples

# Specify the interface whose primary IP address is on network 131.108.20.0/24 to run OSPF in Area 2.

<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] area 2
[Sysname-ospf-100-area-0.0.0.2] network 131.108.20.0 0.0.0.255

Related commands

ospf