vrrp6 vrid

Function

The vrrp6 vrid command creates a Virtual Router Redundancy Protocol for IPv6 (VRRP6) backup group and assigns a virtual IPv6 address to it.

The undo vrrp6 vrid command deletes a VRRP6 backup group or a virtual IPv6 address assigned to it.

By default, no VRRP6 backup group exists on a router.

Format

vrrp6 vrid virtual-router-id [ virtual-ip virtual-address [ link-local ] ]

undo vrrp6 vrid virtual-router-id [ virtual-ip virtual-address [ link-local ] ]

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.

virtual-ip virtual-address

Specifies a virtual IPv6 address for a VRRP6 backup group.

  • If link-local is configured, <virtual-address> must be set to an IPv6 address prefixed with FE80.
  • If link-local is not configured, <virtual-address> must be set to a non-anycast and non-multicast IPv6 address on the same network segment as the local interface's IPv6 address.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

link-local

Indicates that a virtual IPv6 address assigned to a VRRP6 backup group is a link-local address. A link-local address has a prefix of FE80 and is used for communication between adjacent nodes on the same link. The link-local address takes effect only on a local link.

-

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

Generally, hosts use a default gateway to communicate with external networks. If the gateway fails, communication between the hosts and external networks is interrupted. VRRP is a fault-tolerant protocol that allows logical devices to work separately from physical devices and implements route selection among multiple egress gateways.

Precautions

One virtual IPv6 address serves one separate user group, in which users have the same reliability requirements. This setting helps prevent the default gateway addresses from varying according to location changes of VRRP6 routers.

When a VRRP6 backup group is configured on an interface, the first virtual IPv6 address assigned to the VRRP6 backup group must be a link-local address. That is, you must run the vrrp6 vrid virtual-ip link-local command before assigning other virtual IPv6 addresses to the VRRP6 backup group.

If you assign a virtual IPv6 address when creating a VRRP6 backup group, the system automatically deletes the VRRP6 backup group when all virtual IPv6 addresses for the VRRP6 backup group are deleted. If you do not assign a virtual IPv6 address when creating a VRRP6 backup group, the system does not automatically delete the VRRP6 backup group even if all virtual IPv6 addresses for the VRRP6 backup group are deleted.

Example

# Create a VRRP6 backup group on GE 0/1/8 and assign a virtual IPv6 address of FE80::7 to it.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/8
[~HUAWEI-GigabitEthernet0/1/8] ipv6 enable
[*HUAWEI-GigabitEthernet0/1/8] ipv6 address 2001:db8::1 64
[*HUAWEI-GigabitEthernet0/1/8] vrrp6 vrid 1 virtual-ip FE80::7 link-local
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >