R2511-HP MSR Router Series High Availability Command Reference(V5)

43
Examples
# Set the authentication mode to simple and authentication key to Sysname for VRRP group 1 on
interface Ethernet 1/1 to send and receive VRRP packets.
<Sysname> system-view
[Sysname] interface ethernet 1/1
[Sysname-Ethernet1/1] vrrp vrid 1 virtual-ip 10.1.1.1
[Sysname-Ethernet1/1] vrrp vrid 1 authentication-mode simple Sysname
Related commands
display vrrp
vrrp vrid preempt-mode
Use vrrp vrid preempt-mode to enable preemption on the router and configure its preemption delay in
a specific VRRP group.
Use undo vrrp vrid preempt-mode to disable preemption on the router in a specific VRRP group. As a
result, the router operates in non-preemptive mode.
Use undo vrrp vrid preempt-mode timer delay to restore the default preemption delay.
Syntax
vrrp vrid virtual-router-id preempt-mode [ timer delay delay-value ]
undo vrrp vrid virtual-router-id preempt-mode [ timer delay ]
Default
The router operates in preemptive mode and the preemption delay is 0 seconds.
Views
Interface view
Default command level
2: System level
Parameters
virtual-router-id: Specifies a virtual router ID or VRRP group number in the range of 1 to 255.
timer delay delay-value: Sets a preemption delay in the range of 0 to 255 seconds. The default is 0
seconds.
Usage guidelines
To avoid frequent member state changes in a VRRP group and make the 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, and then sends
VRRP advertisements to start a new master election in the VRRP group and becomes the master.
Before executing the command, create a VRRP group on an interface and configure the virtual IP address
of the VRRP group.
Examples
# Enable preemption on the router in VRRP group 1, and set the preemption delay to 5 seconds.
<Sysname> system-view
[Sysname] interface ethernet 1/1
[Sysname-Ethernet1/1] vrrp vrid 1 virtual-ip 10.1.1.1