Switch 7700 Configuration Guide
206 CHAPTER 10: RELIABILITY
Example: VRRP Single
Virtual Router
Host A uses the VRRP virtual router which combines switch A and switch B as its
default gateway to visit host B on the Internet.
VRRP virtual router information includes virtual router ID1, virtual IP address
202.38.160.111, switch A as the Master and switch B as the backup allowed
preemption.
Figure 3 VRRP Configuration
Configure switch A:
[LSW_A-vlan-interface2] vrrp vrid 1 virtual-ip 202.38.160.111
[LSW_A-vlan-interface2] vrrp vrid 1 priority 110
Configure switch B:
[LSW_B-vlan-interface2] vrrp vrid 1 virtual-ip 202.38.160.111
The virtual router can be used soon after configuration. Host A can configure the
default gateway as 202.38.160.111.
Under normal conditions, switch A functions as the gateway, but when switch A is
turned off or is malfunctioning, switch B functions as the gateway instead.
Configure preemption mode for switch A, so that it can resume its gateway
function as the Master after recovery.
Example: VRRP Tracking
Interface
Even when switch A is still functioning, it may want switch B to function as
gateway if the Internet interface connected with it does not function properly. This
can be implemented by configuring a tracking interface. The virtual router ID is set
to 1 with additional configurations of an authorization key and timer.
10.2.3.1
Host B
Internet
Switch B
VLAN-interface3: 10.100.10.2
Switch A
VLAN-interface2: 202.38.160.2
Virtual IP address: 202.38.160.111
202.36.160.3
VLAN-interface2: 202.38.160.1
Host A