The ospfv3 dr-priority command sets the priority of an interface that takes part in the DR or BDR election.
The undo ospfv3 dr-priority command restores the default value.
By default, the priority of an interface that takes part in the DR or BDR election is 1.
ospfv3 dr-priority priority [ instance instance-id ]
undo ospfv3 dr-priority [ priority ] [ instance instance-id ]
Parameter | Description | Value |
---|---|---|
priority | Specifies the priority of the interface that candidates for DR or BDR. | The value is an integer ranging from 0 to 255. The default value is 1. |
instance instance-id | Specifies the instance ID of the interface. | The value is an integer ranging from 0 to 255. The default value is 0. |
The priority of the interface determines the qualification of the interface when electing DR or BDR. The interface with the higher priority is preferred. The router whose priority is 0 cannot be elected as a DR or a BDR.
Before running this command on an interface, run the ospfv3 area command on the interface to enable OSPFv3.
# Set the priority of public instance for electing DR or BDR to 8 on Vlanif10.
<HUAWEI> system-view [HUAWEI] ipv6 [HUAWEI] ospfv3 [HUAWEI-ospfv3-1] router-id 10.1.1.1 [HUAWEI-ospfv3-1] quit [HUAWEI] interface vlanif 10 [HUAWEI-Vlanif10] ipv6 enable [HUAWEI-Vlanif10] ospfv3 1 area 1 [HUAWEI-Vlanif10] ospfv3 dr-priority 8
# Set the priority of public instance for electing DR or BDR to 8 on GE0/0/1.
<HUAWEI> system-view [HUAWEI] ipv6 [HUAWEI] ospfv3 [HUAWEI-ospfv3-1] router-id 10.1.1.1 [HUAWEI-ospfv3-1] quit [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] ipv6 enable [HUAWEI-GigabitEthernet0/0/1] ospfv3 1 area 1 [HUAWEI-GigabitEthernet0/0/1] ospfv3 dr-priority 8