3com MSR 20-20 참조 매뉴얼
2232
C
HAPTER
146: IP
V
4-B
ASED
VRRP C
ONFIGURATION
C
OMMANDS
resulting in frequent master/backup state transition of the standby group
members. Preemption delay is introduced to solve this problem. With a
preemption delay set, if the backup member does not receive the packet from the
master member duly, it waits for a period to see whether it can receive any packet
from the master. If the specified period elapses but it still receives no packet from
the master, it becomes the master.
members. Preemption delay is introduced to solve this problem. With a
preemption delay set, if the backup member does not receive the packet from the
master member duly, it waits for a period to see whether it can receive any packet
from the master. If the specified period elapses but it still receives no packet from
the master, it becomes the master.
Note that before executing the command, you need to create a standby group on
an interface and configure the virtual IP address of the standby group.
an interface and configure the virtual IP address of the standby group.
Example
# Enable preemption on the router in VRRP standby group 1, and set the
preemption delay to five seconds.
preemption delay to five seconds.
<Sysname> system-view
[Sysname] interface ethernet 1/0
[Sysname-Vlan-interface2] vrrp vrid 1 virtual-ip 10.1.1.1
[Sysname-Ethernet1/0] vrrp vrid 1 preempt-mode timer delay 5
vrrp vrid priority
Syntax
vrrp vrid virtual-router-id priority priority-value
undo vrrp vrid virtual-router-id priority
View
Interface view
Parameter
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.
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 router in the
specified standby group.
specified standby group.
Use the undo vrrp vrid priority command to restore the default.
By default, the priority of a router in a standby group is 100.
■
Before executing the command, create a standby group on an interface and
configure the virtual IP address of the standby group.
configure the virtual IP address of the standby group.
■
In VRRP, the role that a router plays in a standby group depends on its priority.
A higher priority means that the router is more likely to become the master.
Note that priority 0 is reserved for special use and 255 for the IP address owner.
A higher priority means that the router is more likely to become the master.
Note that priority 0 is reserved for special use and 255 for the IP address owner.
■
If the router is the IP address owner, its priority is always 255. Therefore, it will
be the master so long as it is functioning normally.
be the master so long as it is functioning normally.
Example
# Set the priority of the router in standby group 1 to 150.
<Sysname> system-view
[Sysname] interface ethernet 1/0
[Sysname-Ethernet1/0] vrrp vrid 1 virtual-ip 10.1.1.1
[Sysname-Ethernet1/0] vrrp vrid 1 priority 150