vrrp ipv6 vrid
Use vrrp ipv6 vrid to create an IPv6 VRRP group and assign a virtual IPv6 address to the VRRP group or to assign a virtual IPv6 address to an existing IPv6 VRRP group.
Use undo vrrp ipv6 vrid to remove all configurations of an existing IPv6 VRRP group or to remove a virtual IPv6 address from an existing IPv6 VRRP group.
Syntax
vrrp ipv6 vrid virtual-router-id virtual-ip virtual-address [ link-local ]
undo vrrp ipv6 vrid virtual-router-id [ virtual-ip [ virtual-address [ link-local ] ] ]
Default
No IPv6 VRRP group is created.
Views
Interface view
Predefined user roles
network-admin
Parameters
virtual-router-id: Specifies an IPv6 VRRP group by its virtual router ID in the range of 1 to 255.
virtual-ip virtual-address: Specifies a virtual IPv6 address. If you do not specify this option, the undo vrrp ipv6 vrid command removes all virtual IPv6 addresses from the existing IPv6 VRRP group.
link-local: Specifies a link-local address as the virtual IPv6 address.
Usage guidelines
You can assign up to 16 virtual IPv6 addresses to an IPv6 VRRP group.
The first virtual IPv6 address that you assign for an IPv6 VRRP group must be a link-local address, and it must be removed last.
An IPv6 VRRP group can have only one link-local address as its virtual IPv6 address.
If you create an IPv6 VRRP group but do not assign any virtual IPv6 address for it, the VRRP group stays in inactive state and does not function.
The virtual IPv6 address of an IPv6 VRRP group and the downlink interface IPv6 address of the VRRP group must be in the same subnet. Otherwise, the hosts in the subnet might fail to access external networks.
Examples
# Create IPv6 VRRP group 1 and assign virtual IPv6 address fe80::10 to the VRRP group. Then assign virtual IPv6 address 1::10 to the VRRP group.
<Sysname> system-view [Sysname] interface vlan-interface 2 [Sysname-Vlan-interface2] vrrp ipv6 vrid 1 virtual-ip fe80::10 link-local [Sysname-Vlan-interface2] vrrp ipv6 vrid 1 virtual-ip 1::10
Related commands
display vrrp ipv6