ip ospf priority
Syntax
ip ospf priority <NUMBER-VALUE>
no ip ospf priority
Description
Sets the OSPF priority for the interface. The larger the numeric value of the priority, the higher the chances for it to become the designated router. Setting a priority of zero makes the router ineligible to become a designated router or back up designated router.
The
no
form of this command sets the OSPF priority for the interface to the default of 1.
Command context
config-if
config-if-vlan
Parameters
<NUMBER-VALUE>
Specifies the OSPF priority value. Default: 1. Range: 0-255.
Authority
Administrators or local user group members with execution rights for this command.
Examples
Setting OSPF priority for the interface:
switch(config)# interface vlan 1 switch(config-if-vlan)# ip ospf priority 50
Disabling OSPF priority for the interface to default:
switch(config)# interface vlan1 switch(config-if-vlan)# no ip ospf priority