R3204P16-HP Load Balancing Module High Availability Command Reference-6PW101

15
Examples
# Set the authentication mode to simple and authentication key to Sysname for VRRP group 1 on
interface Ten-GigabitEthernet 0/0.1 to send and receive VRRP packets.
<Sysname> system-view
[Sysname] interface Ten-GigabitEthernet 0/0.1
[Sysname-Ten-GigabitEthernet0/0.1] vrrp vrid 1 virtual-ip 10.1.1.1
[Sysname-Ten-GigabitEthernet0/0.1] vrrp vrid 1 authentication-mode simple Sysname
vrrp vrid preempt-mode
Syntax
vrrp vrid virtual-router-id preempt-mode [ timer delay delay-value ]
undo vrrp vrid virtual-router-id preempt-mode [ timer delay ]
View
Interface view
Default level
2: System level
Parameters
virtual-router-id: Virtual router ID or VRRP group number, which ranges from 1 to 255.
timer delay delay-value: Sets preemption delay. The delay-value argument is in the range of 0 to 255
seconds and defaults to 0 seconds.
Description
Use the vrrp vrid preempt-mode command to enable preemption on the router and configure its
preemption delay in the specified VRRP group.
Use the undo vrrp vrid preempt-mode command to disable preemption on the router in the specified
VRRP group, that is, specify the router to work in the non-preemptive mode.
Use the undo vrrp vrid preempt-mode timer delay command to restore the default preemption delay, that
is, zero seconds.
The default mode is immediate preemption without delay.
To avoid members in a VRRP group from changing their states frequently and make backups have
enough time to collect information (such as routing information), each backup waits for a period of time
(the preemption delay time) after it receives an advertisement with the priority lower than the local priority,
then sends VRRP advertisements to start a new master election in the VRRP group and finally becomes the
master.
Before executing the command, you need to create a VRRP group on an interface and configure the
virtual IP address of the VRRP group.
Related commands: display vrrp.
Examples
# Enable preemption on the router in VRRP group 1, and set the preemption delay to five seconds.
<Sysname> system-view
[Sysname] interface Ten-GigabitEthernet 0/0.1
[Sysname-Ten-GigabitEthernet0/0.1] vrrp vrid 1 virtual-ip 10.1.1.1