Command Reference OSPFv2 Commands
Ruijie(config-router)# neighbor 172.16.24.2 priority 1 poll-interval 150
Sets the interface priority.
Use this command to define which interfaces run OSPF and the OSPF areas they belong to in routing
process configuration mode. Use the no form of this command to restore the default setting.
network ip-address wildcard area area-id
no network ip-address wildcard area area-id
IP address of the interface
Defines the comparison bits in the IP address, with 0 for exact match
and 1 for no comparison
OSPF area identifier. An OSPF area is always associated with an
address range. For easy of management, a subnet can be used as
the OSPF area identifier.
No OSPF area is configured by default.
Routing process configuration mode
The ip-address and wildcard parameters allow associating multiple interfaces with one OSPF area.
To run OSPF on an interface, it is required to include the primary IP address and secondary IP
address of the interface in the IP address range defined by the network area command. If only the
secondary IP address is included, OSPF cannot be enabled on the interface.
You can determine the OSPF process that the interface takes part in by the means of the best match
if the IP address of the interface matches the IP address ranges defined by the network command in
multiple OSPF processes.
The following example defines:
Three areas: 0, 1 and 172.16.16.0
The interfaces whose IP addresses fall into the 192.168.12.0/24 range to area 1
The interfaces whose IP addresses fall into the 172.16.16.0/20 range to area 2
The remaining interface being assigned to area 0.