< Home

vrrp6 vrid virtual-ip

Function

The vrrp6 vrid virtual-ip command sets virtual IP addresses for the VRRP6 backup group.

The undo vrrp6 vrid command deletes a VRRP6 backup group.

Format

vrrp6 vrid virtual-router-id virtual-ip virtual-ipv6-address link-local { active | standby }

vrrp6 vrid virtual-router-id virtual-ip virtual-ipv6-address

undo vrrp6 vrid virtual-router-id [ virtual-ip virtual-ipv6-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-ipv6-address link-local

Specifies the virtual IPv6 address assigned to a VRRP6 backup group is a link local address. The link local address is an IPv6 address with the prefix being FE80::/10. The link local address takes effect only on a local link because it is used by neighboring nodes along the link to communicate with each other. An IPv6 device never forwards packets carrying link local addresses. To assign a virtual IPv6 address to a VRRP6 backup group, ensure that the first virtual IPv6 address is a link local address.

-

virtual-ip virtual-ipv6-address

Specifies the virtual IP address of a VRRP6 backup group.

The value is in colon hexadecimal notation.

{ active | standby }

Specifies that the backup group works at the active or standby state.

-

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

When configuring a VRRPv6 group, you must configure a link-local address and then a virtual IPv6 address for the group. The configuration procedure is as follows:

  1. In the interface view, run the vrrp6 vrid virtual-router-id virtual-ip virtual-ipv6-address link-local { active | standby } command to create a VRRPv6 group. virtual-router-ID specifies the VRRPv6 group ID. This command configures the link-local address and specifies the VGMP group for the VRRPv6 group.
  2. Run the vrrp6 vrid virtual-router-id virtual-ip virtual-ipv6-address command to configure a virtual IPv6 address for the VRRPv6 group.

Note the following points:

  • A VRRPv6 group can be configured on an interface only after an IPv6 address is assigned to the interface. You can run the ipv6 address command to configure an IPv6 address for the interface.
  • The virtual IPv6 address of the VRRPv6 group cannot be the same as the IPv6 address of any interface.
  • The physical IPv6 address and the virtual address of the VRRP6 group must reside on the same network segment.
  • Only one virtual IPv6 address can be configured for a VRRPv6 group. You can run the vrrp6 vrid virtual-router-id virtual-ip virtual-ipv6-address command again to change the virtual IPv6 address of the VRRPv6 group.

Example

# Configure VRRP6 backup group 1 to work at the Active state and set a virtual IPv6 address 10:100::100:15 for it.

<sysname> system-view
[sysname] interface GigabitEthernet 0/0/1
[sysname-GigabitEthernet0/0/1] vrrp6 vrid 1 virtual-ip FE80::7 link-local active
[sysname-GigabitEthernet0/0/1] vrrp6 vrid 1 virtual-ip 10:100::100:15
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic