153
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
non-stop-routing
Use non-stop-routing to enable OSPF NSR.
Use undo non-stop-routing to disable OSPF NSR.
Syntax
non-stop-routing
undo non-stop-routing
Default
OSPF NSR is disabled.
Views
OSPF view
Predefined user roles
network-admin
Usage guidelines
OSPF NSR and OSPF GR are mutually exclusive, so do not configure the non-stop-routing command and
the graceful-restart command at the same time.
Examples
# Enable NSR for OSPF process 100.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] non-stop-routing