ip ospf priority
Use this command to set the router priority to determine the designated router (DR) for the network.
A router with the higher router priority becomes the DR. If the priority is the same for two routers, the router with the higher router ID takes precedence.
Only routers with a nonzero priority value are eligible to become the designated or backup designated router. Configure router priority for broadcast or NBMA networks only and not for point-to-point networks.
Use the no parameter with this command to return to the default value.
Command Syntax
ip ospf (A.B.C.D|) priority <0-255>
no ip ospf (A.B.C.D|) priority
Parameters
A.B.C.D
The IP address of the interface.
priority
Specify the router priority of the interface.
<0-255>
Specify the router priority of the interface. The default value is 1.
Default
By default, ip ospf priority is 1
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
The following example shows setting the OSPF priority value to 3 on the eth0 interface.
#configure terminal
(config)#interface eth0
(config-if)#ip ospf priority 3
Last modified date: 10/16/2023