Command Manual – HA
H3C S7500E Series Ethernet Switches
Chapter 1 VRRP Configuration Commands
1-10
Examples
# Enable preemption on the router in VRRP standby group 1, and set the preemption
delay to five seconds.
<Sysname> system-view
[Sysname] interface vlan-interface 2
[Sysname-Vlan-interface2] vrrp vrid 1 preempt-mode timer delay 5
1.1.9 vrrp vrid priority
Syntax
vrrp vrid virtual-router-id priority priority-value
undo vrrp vrid
virtual-router-id priority
View
Interface view
Parameters
virtual-router-id
: VRRP standby group number, in the range 1 to 255.
priority-value
: Priority value of the router in the specified standby group, in the range 1
to 254, with a higher number indicating a higher priority.
Description
Use the
vrrp
vrid priority
command to configure the priority of the switch in the
specified standby group.
Use the
undo vrrp
vrid priority
command to restore the default.
By default, the priority of a switch in a standby group is 100.
z
Before executing the command, create a standby group on an interface and
configure the virtual IP address of the standby group.
z
In VRRP, the role that a switch plays in a standby group depends on its priority. A
higher priority means that the switch is more likely to become the master. Note that
priority 0 is reserved for special use and 255 for the IP address owner.
z
If the switch is the IP address owner, its priority is always 255. Therefore, it will be
the master so long as it is functioning normally.
Examples
# Set the priority of standby group 1 on interface VLAN-interface 2 to 150.
<Sysname> system-view
[Sysname] interface vlan-interface 2
[Sysname-Vlan-interface2] vrrp vrid 1 virtual-ip 10.1.1.1
[Sysname-Vlan-interface2] vrrp vrid 1 priority 150