Creating a VRRP Group
Context
VRRP virtualizes multiple devices into a virtual router without changing the networking, and uses the virtual router's IP address as the default gateway address to implement next-hop gateway backup. After a VRRP group is configured, traffic is forwarded through the master. If the master fails, a new master is selected from the backups to forward traffic. This implements gateway backup.
If load sharing is required in addition to gateway backup, configure two or more VRRP groups on an interface in multi-gateway load sharing mode.
Procedure
Create a VRRP group working in active/standby mode.
- Run system-view
The system view is displayed.
- Run interface interface-type interface-numberThe interface view is displayed.
You are advised not to configure a VRRP group on the VLANIF interface corresponding to a super-VLAN. If VRRP groups are configured on the VLANIF interface corresponding to a super-VLAN, ensure that a maximum of 500 VLANs are used. This limit applies to the combined total of common VLANs, super-VLANs, and sub-VLANs. Otherwise, device performance may be affected.
(Optional) On an Ethernet interface, run undo portswitch
The interface is switched to Layer 3 mode.
By default, an Ethernet interface works in Layer 2 mode.
Run vrrp vrid virtual-router-id virtual-ip virtual-address
A VRRP group is created, and a virtual IP address is assigned to the VRRP group.
By default, no VRRP group is created.
Do not configure more than 1000 virtual IP addresses. Otherwise, the VRRP group will flap.
If many VRRP groups are configured, increase the CPCAR of VRRP Advertisement packets. Improper CPCAR settings will affect services on your network. If you need to adjust CPCAR settings, contact technical support personnel for help.
You can also configure an mVRRP group and bind VRRP groups to the mVRRP group to reduce CPU and bandwidth resources consumed by protocol packets.
- Run system-view
Create VRRP groups working in multi-gateway load sharing mode.
If VRRP groups need to work in multi-gateway load sharing mode, repeat the steps to configure multiple VRRP groups on the interface and assign different VRIDs to them.