vrrp6 vrid priority

Function

The vrrp6 vrid priority command sets a priority for a router in a Virtual Router Redundancy Protocol for IPv6 (VRRP6) backup group.

The undo vrrp6 vrid priority command restores the default priority.

The default priority is 100 for a router in a VRRP6 backup group.

Format

vrrp6 vrid virtual-router-id priority priority-value

undo vrrp6 vrid virtual-router-id priority

Parameters

Parameter Description Value
virtual-router-id

Specifies the ID of a VRRP6 backup group.

The value is an integer ranging from 1 to 255.

priority-value

Specifies a priority for a router in a VRRP6 backup group.

The value is an integer ranging from 1 to 254.

Views

100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10GE interface view, 200GE sub-interface view, 25GE sub-interface view, 25GE interface view, 400GE sub-interface view, 400GE interface view, 40GE sub-interface view, 40GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE sub-interface view, GE interface view, GE electrical interface view, Global VE sub-interface view, VE sub-interface view, VLANIF interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
vrrp write

Usage Guidelines

Usage Scenario

The priority of a router determines its position in a VRRP6 backup group. After you run the vrrp6 vrid priority command to set priorities for the routers in a VRRP6 backup group, the router with the highest priority becomes the master router.

Prerequisites

A VRRP6 backup group has been created using the vrrp6 vrid virtual-ip command.

Precautions

If the routers in a VRRP6 backup group have the same priority, the router that first switches to the Master state becomes the master router. Other backup routers no longer preempt the Master state.

Example

# Set the priority to 150 for a router in VRRP6 backup group 1.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/1
[~HUAWEI-GigabitEthernet0/1/1] ipv6 enable
[*HUAWEI-GigabitEthernet0/1/1] ipv6 address 2001:db8::1 64
[*HUAWEI-GigabitEthernet0/1/1] vrrp6 vrid 1 virtual-ip FE80::7 link-local
[*HUAWEI-GigabitEthernet0/1/1] vrrp6 vrid 1 priority 150
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >