The ospf dr-priority command sets the priority of the interface that candidates for the designated router (DR).
The undo ospf dr-priority command restores the default value.
By default, it is 1.
| Parameter | Description | Value |
|---|---|---|
| priority | Specifies the priority of the interface that candidates for DR or BDR. The greater the value is, the higher the priority is. | The value is an integer ranging from 0 to 255. |
Ethernet interface view, Ethernet sub-interface view, Eth-Trunk interface view, Eth-Trunk sub-interface view, Tunnel interface view, Dialer interface view, VLANIF interface view, Virtual-Template interface view, BDIF interface view
Usage Scenario
The priority of the interface determines the qualification of the interface in DR election. The interface with a higher priority is selected in the DR election. The router whose priority is 0 cannot be elected as a DR or a BDR. In broadcast or NBMA, you can configure DR priority of the interface to influence DR or BDR selection.
Configuration Impact
When the DR and the BDR are elected in the network segment, they send DD packets to all the neighboring nodes and set up adjacency.
Precautions
Restarting or shutting down the current interface will interrupt the OSPF adjacency relationship between devices. Therefore, perform the operation with caution.