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

Copy
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 <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 xe1 interface.

Copy
#configure terminal
(config)#interface xe1
(config-if)#ip ospf priority 3