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

Parameters

<NUMBER-VALUE>

Specifies the OSPF priority value. Default: 1. Range: 0-255.

Authority

Administrators

Examples

Setting OSPF priority for the interface:

switch# configure terminal
switch(config)# interface 1/1/1
switch(config-if)# ip ospf priority 50

Disabling OSPF priority for the interface to default:

switch# configure terminal
switch(config)# interface 1/1/1
switch(config-if)# no ip ospf priority