Configuring an IPv6 VRRP group

About IPv6 VRRP group

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.

If you disable an IPv6 VRRP group, the VRRP group enters Initialize state, and the existing configuration on the VRRP group remains unchanged. You can modify the configuration of the VRRP group. The modification takes effect when you enable the VRRP group again.

Restrictions and guidelines

Item

Remarks

VLAN interface

Do not create VRRP groups on the VLAN interface of a super VLAN. Otherwise, network performance might be adversely affected. For information about the super VLAN feature, see Layer 2—LAN Switching Configuration Guide.

Maximum number of VRRP groups and virtual IPv6 addresses

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.

Virtual IPv6 address

In load balancing mode, the virtual IPv6 address of a VRRP group cannot be the same as the IPv6 address of any interfaces in the VRRP group. No IP address owner can exist in a VRRP group.

An IPv6 VRRP group without virtual IPv6 addresses configured can exist on a device provided that other settings (for example, priority and preemption mode) are available. Such a VRRP group stays in inactive state and does not function.

For hosts in the subnet to access external networks, as a best practice, configure the following addresses in the same subnet:

  • Virtual IPv6 address of an IPv6 VRRP group.

  • Downlink interface IPv6 addresses of the VRRP group members.

IP address owner

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.

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 running priority of an IP address owner is always 255, and you do not need to configure it. An IP address owner always operates in preemptive mode.

If you configure the vrrp ipv6 vrid track priority reduced or vrrp ipv6 vrid track switchover command on an IP address owner, the configuration does not take effect until the router becomes a non-IP address owner.

VRRP association with a track entry

When the track entry changes from Negative to Positive or Notready, the router automatically restores its priority or the failed master router becomes the master again.

Creating a VRRP group and assign a virtual IPv6 address

  1. Enter system view.

    system-view

  2. Enter interface view.

    interface interface-type interface-number

  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

    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.

Configuring an IPv6 VRRP group

  1. Enter system view.

    system-view

  2. Enter interface view.

    interface interface-type interface-number

  3. 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 to an IPv6 VRRP group.

  4. Set the priority of the router in the VRRP group.

    vrrp ipv6 vrid virtual-router-id priority priority-value

    The default setting is 100.

  5. Enable the preemptive mode for the router in a VRRP group and set the preemption delay time.

    vrrp ipv6 vrid virtual-router-id preempt-mode [ delay delay-value ]

    By default, the router in a VRRP group operates in preemptive mode and the preemption delay time is 0 centiseconds, which means an immediate preemption.

  6. Associate a VRRP group with a track entry.

    vrrp ipv6 vrid virtual-router-id track track-entry-number { forwarder-switchover member-ip ipv6-address | priority reduced [ priority-reduced ] | switchover | weight reduced [ weight-reduced ] }

    By default, a VRRP group is not associated with any track entries.

Disabling an IPv6 VRRP group

  1. Enter system view.

    system-view

  2. Enter interface view.

    interface interface-type interface-number

  3. Disable an IPv6 VRRP group.

    vrrp ipv6 vrid virtual-router-id shutdown

    By default, an IPv6 VRRP group is enabled.