ip ospf priority

Configures priority for designated router (DR) election.
Syntax
ip ospf priority value
no ip ospf priority
Command Default

The default value is 1.

Parameters
value
Priority value. Valid values range from 0 through 255.
Modes

Interface subtype configuration mode

Usage Guidelines

The OSPFv2 router assigned the highest priority becomes the designated router, and the OSPFv2 router with the second-highest priority becomes the backup router.

If you set the priority to 0, the device does not participate in DR and BDR election.

The no form of the command restores the default value.

Examples

The following example sets a priority of 10 for the OSPFv2 router that is connected to an OSPFv2 Virtual Ethernet (VE) interface.

device# configure terminal
device(config)# interface interface ve 1
device(config-vif-1)# ipv6 ospf priority 10
 
History