< Home

ospf dr-priority

Function

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.

Format

ospf dr-priority priority

undo ospf dr-priority

Parameters

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.

Views

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

Default Level

2: Configuration level

Usage Guidelines

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.

Reconfiguring the DR priority for the device does not change the DR or BDR on the network. You can reelect a DR or BDR by using the following methods. This, however, will result in interruption of the OSPF neighboring relationship between devices. Therefore, the following methods are used only when necessary.
  • Restart the OSPF process on all devices.
  • Run the shutdown command and the undo shutdown command in time sequence on the interfaces where the OSPF neighboring relationships are established.

Example

# Set the priority of GigabitEthernet 0/0/1 that candidates for DR to 8.

<sysname> system-view 
[sysname] interface GigabitEthernet 0/0/1
[sysname-GigabitEthernet0/0/1] ospf dr-priority 8
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >