Single VRRP Group Configuration 185
#Enable the VRRP group to respond to ping operations destined for its virtual IP address.
# Create a VRRP group.
# Configure preemptive mode for the VRRP group.
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
#
interface
ip address 202.38.160.1 255.255.255.0 vrrp vrid 1
#
interface Ethernet1/0/6 port access vlan 2
#
■Configurations on Switch B
#
vrrp
#
interface
ip address 202.38.160.2 255.255.255.0 vrrp vrid 1
#
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.