![Huawei Quidway S5600 Operation Manual Download Page 594](http://html.mh-extra.com/html/huawei/quidway-s5600/quidway-s5600_operation-manual_169841594.webp)
Operation Manual – VRRP
Quidway S5600 Series Ethernet Switches-Release 1510
Chapter 1 VRRP Configuration
Huawei Technologies Proprietary
1-12
# Create a backup group.
[LSW-A] interface vlan 2
[LSW-A-Vlan-interface2] vrrp vrid 1 virtual-ip 202.38.160.111
# Set Switch A’s priority in backup group 1.
[LSW-A-Vlan-interface2] vrrp vrid 1 priority 110
# Configure the preemptive mode for the backup group.
[LSW-A-Vlan-interface2] vrrp vrid 1 preempt-mode
z
Configure Switch B.
# Configure VLAN 2.
<LSW-B> system-view
System View: return to User View with Ctrl+Z.
[LSW-B] vlan 2
[LSW-B-Vlan2] port GigabitEthernet 1/0/5
[LSW-B-vlan2] quit
[LSW-B] interface Vlan-interface 2
[LSW-B-Vlan-interface2] ip address 202.38.160.2 255.255.255.0
[LSW-B-Vlan-interface2] quit
# Enable a backup group to respond to ping operations destined for its virtual router IP
address..
[LSW-B] vrrp ping-enable
# Create a backup group.
[LSW-B] interface vlan 2
[LSW-B-Vlan-interface2] vrrp vrid 1 virtual-ip 202.38.160.111
# Configure the preemptive mode for the backup group.
[LSW-B-Vlan-interface2] vrrp vrid 1 preempt-mode
The IP address of the default gateway of Host A can be configured to be
202.38.160.111.
Normally, Switch A functions as the gateway, but when Switch A is turned off or
malfunctions, Switch B will function as the gateway instead.
Configure Switch A to operate in preemptive mode, so that it can resume its gateway
function as the master switch after recovery.
1.4.2 VRRP Tracking Interface Configuration
I. Network requirements
Even when Switch A is still functioning, Switch B (with another link to connect with the
outside) can function as a gateway when the interface on Switch A and connecting to