ip ospf priority

Use this command to set the OSPF priority value for router interfaces.

Syntax

ip ospf priority number
no ip ospf priority

Parameters

number Specifies the router‘s OSPF priority in a range from 0 to 255.

Defaults

None.

Mode

OSPF router configuration.

Usage

The priority value is communicated between routers by means of hello messages and influences the election of a designated router.

The “no” form of this command resets the value to the default of 1.

Example

This example shows how to set the OSPF priority to 20 for VLAN 1:

System(rw-config)->interface vlan 1
System(rw-config-intf-vlan.0.1)->ip ospf priority 20