Command Reference OSPFv2 Commands
Ruijie(config)# interface Serial 1/0
Ruijie(config-Serial 1/0)# ip address 172.16.24.4 255.255.255.0
Ruijie(config-Serial 1/0)# encapsulation frame-relay
Ruijie(config-Serial 1/0)# ip ospf network non-broadcast
Ruijie(config-Serial 1/0)#exit
Ruijie(config)# router ospf 20
Ruijie(config-router)# neighbor 172.16.24.2 priority 1 poll-interval 150
Defines the mapping between IP address and
dialing number.
Defines the mapping between IP address and
frame DLCI.
Defines the IP address of neighbor applicable
to NBMA network type and point-to-multipoint
non-broadcast type only.
Defines the mapping between IP address and
X.25 network address.
Use this command to configure the OSPF priority in interface configuration mode. Use the no form of
this command to restore the default setting.
ip ospf priority priority
Sets the OSPF priority of the interface in the range from 0 to 255.
Interface configuration mode
The interface priority is included in the Hello packet. When DR/BDR election occurs in the OSPF
broadcast type network, the device with higher priority will become the DR or BDR. If the devices
have the same priority, the one with higher ID will become the DR or BDR. The device with priority 0
cannot become DR or BDR. This command is valid only for OSPF broadcast and non-broadcast
network types.