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.
Create a VRRP group working in active/standby mode.
The system view is displayed.
S5720-EI, S6720-EI, and S6720S-EI: 500
S5720I-SI, S5720S-SI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5730S-EI, S5730-SI, S6720S-SI, and S6720-SI: 312
(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.
Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support switching between Layer 2 and Layer 3 modes.
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.
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.
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.