home

Supported platforms

Vyatta documentation

Learn how to install, configure, and operate the Vyatta Network Operating System (Vyatta NOS) and Orchestrator, which help drive our virtual networking and physical platforms portfolio.

interfaces <interface> <interface-name> ip ospf priority <priority>

Sets the OSPF priority for an interface.

set interfaces interface interface-name ip ospf priority priority
delete interfaces interface interface-name ip ospf priority
show interfaces interface interface-name ip ospf priority

An OSPF interface has a priority of 1.

interface
A type of interface. For detailed keywords and arguments that can be specified as interface types, refer to Supported Interface Types.
interface-name
The name of an interface.
priority
The OSPF priority for the specified interface. The priority ranges from 0 through 255, where a router with priority 0 can never become the designated router and cannot take part in the DR/BDR election. The default priority is 1.

Configuration mode

interfaces {
	interfaces interface-name {
		ip {
			ospf {
				priority priority
			}
		}
	}
}

Use this command to set the OSPF priority for an interface on the broadcast network to which the interface is connected. The priority determines which routers are selected as the designated router (DR) and backup designated router (BDR) of the area.

The DR and BDR reduce the amount of traffic on OSPF overhead on broadcast networks by reducing the number of adjacent routers to which a router must flood its topological information. In broadcast networks (such as Ethernet), each router establishes an adjacency with only the DR and BDR rather than with every router in its area. The DR and BDR then flood this information to all other routers on the network segment.

The priority ranges from 0 through 255. In general, the router with the highest priority is elected as the DR, and the router with the second-highest priority is elected as the BDR. The higher the number, the higher the priority.

A router with a priority of 0 is ineligible for election as a DR or BDR.

Use the set form of this command to set the OSPF priority for an interface.

Use the delete form of this command to restore the default OSPF priority, which is 1, for an interface.

Use the show form of this command to display the OSPF priority for an interface.