Operation Manual – ReliabilityH3C S9500 Series Routing Switches Chapter 1 VRRP Configuration1-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-modeThe virtual router can be used soon after configuration. Host A can configure the defaultgateway as 202.38.160.111.Under normal conditions, switch A functions as the gateway, but when switch A isturned 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 asthe Master after recovery.1.4.2 VRRP Tracking Interface ExampleI. Networking requirementsEven when switch A is still functioning, it may want switch B to function as gatewaywhen the Internet interface connected with it does not function properly. This can beimplemented by configuration of tracking interface.In simple language, the virtual router ID is set as 1 with additional configurations ofauthorization key and timer.II. Networking diagramSee Figure 1-3.III. Configuration ProcedureConfigure 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