3com 5500-ei pwr Instruccion De Instalación
1-12
[LSW-B-Vlan-interface2] ip address 202.38.160.2 255.255.255.0
[LSW-B-Vlan-interface2] quit
# Enable a VRRP group to respond to ping operations destined for its virtual router IP address.
[LSW-B] vrrp ping-enable
# Create a VRRP 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 VRRP group.
[LSW-B-Vlan-interface2] vrrp vrid 1 preempt-mode
The IP address of the default gateway of Host A is configured as 202.38.160.111.
Normally, Switch A functions as the gateway, but when Switch A is turned off or fails, 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 after recovery.
VRRP Tracking Interface Configuration
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 Internet does not function
properly. This can be implemented by enabling the VLAN interface tracking function.
The VRRP group ID is set to 1, with configurations of authorization key and timer.
Network diagram
Figure 1-4 Network diagram for interface tracking configuration
LSW A
Host B
LSW B
Vlan-int3
10.100.10.2/24
Vlan-int2
202.38.160.1/24
Vlan-int2
202.38.160.2/24
202.38.160.3/24
10.2.3.1/24
Host A
Internet
Virtual IP address
202.38.160.111/24
Vlan-int3
10.100.10.3/24