Operation Manual – Reliability
H3C S9500 Series Routing Switches
Chapter 1 VRRP Configuration
1-11
[LSW-B-vlan-interface2] quit
# Configure VRRP.
[LSW-B] vrrp ping-enable
[LSW-B] interface vlan 2
[LSW-B-vlan-interface2] vrrp vrid 1 virtual-ip 202.38.160.111
[LSW-B-vlan-interface2] vrrp vrid 1 preempt-mode
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 malfunctioning, switch B will function as the gateway instead.
Configure preemption mode for switch A, so that it can resume its gateway function as
the Master after recovery.
1.4.2 VRRP Tracking Interface Example
I. Networking requirements
Even when switch A is still functioning, it may want switch B to function as gateway
when the Internet interface connected with it does not function properly. This can be
implemented by configuration of tracking interface.
In simple language, the virtual router ID is set as 1 with additional configurations of
authorization key and timer.
II. Networking diagram
III. Configuration Procedure
Configure switch A
# Configure VLAN2.
[LSW-A] vlan 2
[LSW-A-vlan2] interface vlan 2
[LSW-A-vlan-interface2] ip address 202.38.160.1 255.255.255.0
[LSW-A-vlan-interface2] quit
# Enable the function to ping the virtual IP address of virtual router.
[LSW-A ] vrrp ping-enable
# Create a virtual router.
[LSW-A] interface vlan 2
[LSW_A-vlan-interface2] vrrp vrid 1 virtual-ip 202.38.160.111
# Set the priority for the virtual router.
[LSW_A-vlan-interface2] vrrp vrid 1 priority 110