3Com 3.01.01 Switch User Manual


 
298 CHAPTER 10: RELIABILITY
[SW8800_A-vlan-interface2]vrrp vrid 1 priority 110
3 Set the authentication key for the virtual router.
[SW8800_A-vlan-interface2]vrrp authentication-mode md5 lanswitch
4 Set Master to send VRRP packets every 5 seconds.
[SW8800_A-vlan-interface2]vrrp vrid 1 timer advertise 5
5 Track an interface.
[SW8800_A-vlan-interface2]vrrp vrid 1 track vlan-interface 3 reduced
30
Configure switch B
1 Create a virtual router.
[SW8800_B-vlan-interface2]vrrp vrid 1 virtual-ip 202.38.160.111
2 Set the authentication key for the virtual router.
[SW8800_B-vlan-interface2]vrrp authentication-mode md5 lanswitch
3 Set Master to send VRRP packets every 5 seconds.
[SW8800_B-vlan-interface2]vrrp vrid 1 timer advertise 5
Under normal conditions, switch A functions as the gateway. When the interface
vlan-interface 3 of switch A is down, its priority is reduced by 30, so run priority is
80. This run priority value is lower than the run priority value of switch B so switch
B preempts the master for gateway services.
When vlan-interface3, the switch A interface, recovers, this switch resumes its
gateway function as master.
Example: Multiple
Virtual Routers
A Switch can function as the backup switch for many virtual routers.
Such a multi-backup configuration can implement load balancing. For example,
switch A, as master switch of group 1, can share the responsibility of the backup
switch for virtual router 2, and switch B performs the same functions for group 2
and virtual router 1. Some hosts employ virtual router 1 as the gateway, while
others employ virtual router 2 as the gateway. In this way, both load balancing and
mutual backup are possible.
Load balancing is not supported in virtual-mac mode.
Configure switch A:
1 Create virtual router 1.
[SW8800_A-vlan-interface2]vrrp vrid 1 virtual-ip 202.38.160.111
2 Set the priority for the virtual router.
[SW8800_A-vlan-interface2]vrrp vrid 1 priority 150
3 Create virtual router 2.
[SW8800_A-vlan-interface2]vrrp vrid 2 virtual-ip 202.38.160.112
Configure switch B:
1 Create virtual router 1.
[SW8800_B-vlan-interface2]vrrp vrid 1 virtual-ip 202.38.160.111