131
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter VLAN interface view or Layer
3 Ethernet interface view
interface
interface-type
interface-number
—
Configure router priority in the
VRRP group
vrrp vrid
virtual-router-id
priority
priority-value
Optional
100 by default.
Configure the router in the VRRP
group to work in preemptive mode
and configure preemption delay
vrrp vrid
virtual-router-id
preempt-mode
[
timer delay
delay-value
]
Optional
The router in the VRRP group works
in preemptive mode and the
preemption delay is 0 seconds by
default.
Configure the interface to be
tracked
vrrp vrid
virtual-router-id
track
interface
interface-type
interface-number
[
reduced
priority-reduced
]
Optional
No interface is being tracked by
default.
Configure VRRP to track a
specified track entry
vrrp vrid
virtual-router-id
track
track-entry-number
[
reduced
priority-reduced
|
switchover
]
Optional
Not configured by default.
NOTE:
•
The running priority of an IP address owner is always 255 and you do not need to configure it. An IP
address owner always works in preemptive mode.
•
Do not configure VRRP tracking for an interface or a track entry on an IP address owner.
•
The tracked interface can be a Layer 3 Ethernet interface, or a VLAN interface.
•
If the state of a tracked interface changes from down or removed to up, the priority of the router where
the interface resides is automatically restored.
•
If the state of a track entry changes from negative or invalid to positive, the priority of the router where
the track entry is configured is automatically restored.
Configuring VF tracking
Configuration prerequisites
Before you configure the VF tracking function, create a VRRP group and configure a virtual IP address for
it.
Configuration procedure
VRRP works in load balancing mode. Suppose that the VF is configured to monitor the track entry. When
the state of the track entry becomes negative, the weight values of all VFs on the routers decrease by a
specified value; when the state of the track entry becomes positive or invalid, the weight values of all VFs
on the routers restore their original values.
Follow these steps to configure VF tracking:
To do…
Use the command…
Remarks
Enter system view
system-view
—