The vrrp6 vrid priority command sets the priority of the device in a VRRP6 group.
The undo vrrp6 vrid priority command restores the default priority of the device in a VRRP6 group.
By default, the priority of the device in a VRRP6 group is 100.
vrrp6 vrid virtual-router-id priority priority-value
undo vrrp6 vrid virtual-router-id priority
Parameter | Description | Value |
---|---|---|
vrid virtual-router-id | Specifies the VRID of a VRRP6 group. | The value is an integer that ranges from 1 to 255. |
priority priority-value | Specifies the priority of the device in a VRRP6 group. | The value is an integer that ranges from 1 to 254. A larger value indicates a higher priority. |
VLANIF interface view, Eth-Trunk interface view, GE interface view, MultiGE interface view, XGE interface view, 25GE interface view, 40GE interface view, 100GE interface view, Eth-Trunk sub-interface view, GE sub-interface view, MultiGE sub-interface view, XGE sub-interface view, 25GE sub-interface view, 40GE sub-interface view, 100GE sub-interface view
To configure the device in a VRRP6 group as the default gateway, run the vrrp6 vrid priority command to specify the highest priority for the device so that the device can become the master.
PrerequisitesThe vrrp6 vrid virtual-ip command has been executed to create a VRRP6 group.
PrecautionsPriority 0 is reserved in the system. Priority 255 is reserved for the IP address owner.
When devices in a VRRP6 group have the same priority, the device that first changes to master state becomes the master. If devices attempt to be the master simultaneously, the device where the interface with the largest IP address is located becomes the master.
<HUAWEI> system-view [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] vrrp6 vrid 2 virtual-ip FE80::7 link-local [HUAWEI-Vlanif100] vrrp6 vrid 2 priority 120
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] vrrp6 vrid 2 virtual-ip FE80::7 link-local [HUAWEI-GigabitEthernet0/0/1] vrrp6 vrid 2 priority 120