Configuring VRRP6 Association
Pre-configuration Tasks
VRRP6 association enables VRRP6 to detect faults in a timely manner and triggers an active/standby switchover when the master or the uplink of the master becomes faulty. VRRP6 association optimizes VRRP6 switchover and enhances network reliability.
Before configuring VRRP6 association, complete the task of Configuring Basic Functions of an IPv6 VRRP Group.
Configuring Association Between VRRP6 and the Interface Status to Implement an Active/Standby Switchover
Context
When the uplink interface of the master becomes faulty, VRRP6 cannot detect the status change of interfaces not in the VRRP6 group, causing service interruption. You can associate a VRRP6 group with the interface status. When the monitored interface is faulty, the priority of the master is reduced. This triggers an active/standby switchover and reduces the impact of the uplink interface fault on service forwarding.
When the fault is rectified, the original master restores its priority and switches to the master to forward traffic.
The master and backup in the VRRP6 group must work in preemption mode. It is recommended that the preemption delay be 0 on the backup and non-0 on the master.
Procedure
- Run system-view
The system view is displayed.
- Run interface interface-type interface-number
The view of the interface on the master where a VRRP6 group is configured is displayed.
- Run vrrp6 vrid virtual-router-id track interface interface-type interface-number [ increased value-increased | reduced value-reduced ]
Association between VRRP6 and the interface status is configured.
By default, when the monitored interface goes Down, the VRRP6 priority of the device decreases by 10.
If the IPv4 protocol status on the monitored interface configured with an IPv4 address changes, the priority of the master is reduced. If the IPv6 protocol status on the monitored interface configured with an IPv6 address changes, the VRRP6 group remains unchanged.
Associating VRRP6 with a Route to Implement a Rapid Master/Backup VRRP6 Switchover
A VRRP6 backup group can track an uplink route connected to a network. If the tracked route is withdrawn or becomes inactive, the VRRP6 backup group is notified of the change and rapidly performs a master/backup VRRP6 switchover.
Context
To improve device reliability, two user gateways working in master/backup mode are connected to a network, and VRRP6 is enabled on these gateways to determine their master and backup states. Although a VRRP6 backup group has been configured, if an uplink route to a network becomes unreachable, access-side users still use the VRRP6 backup group to forwards service data along the uplink route, causing service data loss.
Association between the VRRP6 backup group and route can prevent service data loss. The VRRP6 backup group can be configured to track the uplink route to the network. If the route is withdrawn or becomes inactive, the route management (RM) module notifies the VRRP6 backup group of the change. After receiving the notification, the VRRP6 backup group changes its master device's VRRP6 priority, and performs a master/backup switchover.
Procedure
- Run system-view
The system view is displayed.
- Run interface interface-type interface-number
The view of the interface where the VRRP6 backup group is configured is displayed.
- Run vrrp6 vrid virtual-router-id track ipv6 route ipv6-address prefix-length [ vpn-instance vpn-instance-name ] [ reduced value-reduced ]
The VRRP6 backup group is configured to track the route.
By default, a VRRP6 backup group tracks no route.
Checking the Configuration
Procedure
- Run the display vrrp6 [ interface interface-type interface-number ] [ vrid virtual-router-id ] [ brief ] command to check the VRRP6 group status and parameters.
- Run the display vrrp6 [ interface interface-type interface-number ] [ vrid virtual-router-id ] statistics command to check statistics about sent and received packets of the VRRP6 group.