Creating a VRRP group and assigning a virtual IPv6 address
A VRRP group can work correctly after you create it and assign a minimum of one virtual IPv6 address for it. You can configure multiple virtual IPv6 addresses for the VRRP group on an interface that connects to multiple subnets for router backup.
Configuration guidelines
Do not create VRRP groups in the VLAN interface of a super VLAN. Otherwise, network performance might be adversely affected.
On an IP address owner, as a best practice, do not use the ospfv3 area command to enable OSPF on the interface owning the virtual IPv6 address of the VRRP group. For more information about the ospfv3 area command, see Layer 3—IP Routing Command Reference.
In load balancing mode, the virtual IPv6 address of a VRRP group cannot be the same as the IPv6 address of any interface in the VRRP group.
The maximum number of VRRP groups supported by an interface and the maximum number of virtual IPv6 addresses supported by a VRRP group depend on the device model.
In VRRP load balancing mode, the device supports a maximum of MaxVRNum/N VRRP groups. MaxVRNum refers to the maximum number of VRRP groups supported by the device in VRRP standard mode. N refers to the number of devices in the VRRP group.
If you create an IPv6 VRRP group without assigning virtual IPv6 address to it, the VRRP group stays in inactive state and does not function.
Removal of the VRRP group on the IP address owner causes IP address collision. To avoid the collision, change the IPv6 address of the interface on the IP address owner before you remove the VRRP group from the interface.
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.
Configuration procedure
To create a VRRP group and assign a virtual IPv6 address:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enter interface view. | interface interface-type interface-number | N/A |
3. Create a VRRP group and assign a virtual IPv6 address, which is a link-local address. | vrrp ipv6 vrid virtual-router-id virtual-ip virtual-address link-local | By default, no VRRP groups exist. The first virtual IPv6 address that you assign to an IPv6 VRRP group must be a link-local address. It must be the last address you remove. Only one link local address is allowed in a VRRP group. |
4. (Optional.) Assign a virtual IPv6 address, which is a global unicast address. | vrrp ipv6 vrid virtual-router-id virtual-ip virtual-address | By default, no global unicast address is assigned for an IPv6 VRRP group. |