![Huawei Quidway S5600 Operation Manual Download Page 596](http://html.mh-extra.com/html/huawei/quidway-s5600/quidway-s5600_operation-manual_169841596.webp)
Operation Manual – VRRP
Quidway S5600 Series Ethernet Switches-Release 1510
Chapter 1 VRRP Configuration
Huawei Technologies Proprietary
1-14
[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
# Set the authentication type for the backup group to
md5,
and the password to
abc123.
[LSW-A-Vlan-interface2] vrrp authentication-mode md5 abc123
# Configure that the master switch to send VRRP packets once in every 5 seconds.
[LSW-A-Vlan-interface2] vrrp vrid 1 timer advertise 5
# Set the tracked VLAN interface.
[LSW-A-Vlan-interface2] vrrp vrid 1 track Vlan-interface 3 reduced 30
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
# Configure that the virtual router can be pinged.
[LSW-B] vrrp ping-enable
# Create a backup group.
[LSW-B] interface Vlan-interface 2
[LSW-B-Vlan-interface2] vrrp vrid 1 virtual-ip 202.38.160.111
# Set the authentication key for the backup group.
[LSW-B-Vlan-interface2] vrrp authentication-mode md5 abc123
# Set the master to send VRRP packets once in every 5 seconds.
[LSW-B-Vlan-interface2] vrrp vrid 1 timer advertise 5
Normally, Switch A functions as the gateway, but when VLAN 3 interface on Switch A
goes down, its priority in the backup group will be reduced by 30, lower than that of
Switch B so that Switch B will preempt the master for gateway services instead.
When VLAN 3 interface recovers, switch A will resume its gateway function as the
master.