Switch 7700 Configuration Guide
Configuring VRRP 203
The following command is used for assigning an IP address of the local segment to
a virtual router or removing an assigned virtual IP address of a virtual router from
the virtual address list.
Perform the following configuration in VLAN interface view.
Configuring the Priority
of Switches
The status of each switch in the virtual router is determined by its priority in VRRP.
The switch with the highest priority becomes the master.
The priority ranges from 0 to 255 (the greater the number, the higher the priority).
However only values from 1 to 254 can be used. Priority 0 is reserved for special
use and 255 is reserved for the IP address owner by the system.
Perform the following configuration in VLAN interface view.
By default, the priority is 100.
Note: The priority for an IP address owner is always 255, which cannot be
changed.
Configuring Preemption
and Delay for a Switch
As long as a switch in the virtual router functions as master switch, other switches,
even if they are configured with a higher priority later, cannot become the master
switch unless they are configured to work in preemption mode. The switch in
preemption mode canl become the master switch when it finds that its own
priority is higher than the priority of the current master switch. If this happens, the
former master switch becomes the backup switch.
In addition to preemption settings, a delay can also be set. In this way, a backup
switch waits for a period of time before becoming a master. In an unstable
network, if the backup switch has not received the packets from the master switch
punctually, it becomes the master switch. However, the failure of the backup
switch to receive packets may be due to network congestion instead of the
malfunction of the master switch. In this case, the backup switch receives the
packet after a while. The delay settings can thereby avoid a frequent change of
status.
Tabl e 1 Add/Delete a Virtual IP Address
Operation Command
Add a virtual IP address. vrrp vrid virtual-router-ID virtual-ip virtual-address
Delete a virtual IP address. undo vrrp vrid virtual-router-ID [ virtual-ip virtual-address ]
Tabl e 2 Configure the Priority of Switches in the Virtual Router
Operation Command
Configure the priority of
switches in the virtual router.
vrrp vrid virtual-router-ID priority priority
Clear the priority of switches in
the virtual router.
undo vrrp vrid virtual-router-ID priority