3Com 5500 Switch User Manual


 
Single VRRP Group Configuration 185
[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
# Enable the VRRP group to respond to ping operations destined for its virtual 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 preemptive mode for the VRRP group.
[LSW-B-Vlan-interface2] vrrp vrid 1 preempt-mode
The default gateway of Host A is configured as 202.38.160.111.
Normally, Switch A functions as the gateway. When Switch A is turned off or fails,
Switch B functions as the gateway.
Because Switch A is configured to work in the preemptive mode, when Switch A
resumes to work, it becomes the master again to function as the gateway.
Complete Configuration
Configurations on Switch A
#
vrrp ping-enable
#
interface Vlan-interface1
ip address 202.38.160.1 255.255.255.0
vrrp vrid 1 virtual-ip 202.38.160.111
vrrp vrid 1 priority 110
#
interface Ethernet1/0/6
port access vlan 2
#
Configurations on Switch B
#
vrrp ping-enable
#
interface Vlan-interface1
ip address 202.38.160.2 255.255.255.0
vrrp vrid 1 virtual-ip 202.38.160.111
#
interface Ethernet1/0/5
port access vlan 2
#
Precautions The Switch 5500 supports VRRP, while the Switch 4500 does not.
For the IP address owner, its priority in the VRRP group is always 255.
Do not configure multiple VRRP groups on the same VLAN interface.
Otherwise, the VRRP function will be affected.