ip ospf priority

Last Updated : Nov 06, 2012 |

Configures interface priority, which is used during the election of a designated router. Use no ip ospf priority to set the OSPF priority to its default value.

Syntax

ip ospf priority priority

no ip ospf priority

Parameters

Parameter

Description

Possible Values

Default Value

priority

The interface priority

0-255

1

User level

read-write

Context

interface:Serial (DS1 PPP L2-L3, DS1 PPP L3, DS1 FR-SUB L2-L3, DS1 FR-SUB L3, USP PPP L2-L3, USP PPP L3), FastEthernet (L2-L3, L3, PPP L2-L3, PPP L3), VLAN (L2-L3, L3), Loopback (L2-L3, L3), Tunnel (L2-L3, L3), Dialer (L2-L3, L3)

Example

To set the interface OSPF priority to 17:

Gxxx-001(if:Vlan 1)# ip ospf priority 17