3com 8807 User Guide

Page of 883
662
C
HAPTER
 53: VRRP C
ONFIGURATION
[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.
VRRP Tracking Interface 
Example
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.
Networking diagram
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.
[3ComLSW-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 
# Set the authentication key for the virtual router.
[LSW_A-vlan-interface2] vrrp authentication-mode md5 switch 
# Set Master to send VRRP packets every 5 seconds.
[LSW_A-vlan-interface2] vrrp vrid 1 timer advertise 5