
7.4.2 Configuring VRRP to Track the Status of an Interface
By configuring a VRRP backup group to track the interface status, you can implement the fast
VRRP master/backup switchover.
Context
The backup is performed when other interfaces on a switch are unavailable. This feature is
required in NAT applications.
Do as follows on the switch of the tracked interface:
Perform the following step as required to configure VRRP for IPv4 or VRRP for IPv6.
Procedure
l
For VRRP for IPv4, run the following commands:
1.
Run:
system-view
The system view is displayed.
2.
Run:
interface
interface-type
interface-number
The interface view is displayed.
3.
Run:
vrrp vrid
virtual-router-id
track
interface
interface-type
interface-
number
[
increased
value-increased
|
reduced
value-reduced
]
A interface to be tracked is specified.
–
By default, when the tracked interface is Down, the priorities of switches in the
tracking backup group decrease by 10.
–
increased
value-increased
: specifies the value by which the priority increases
when the tracked interface goes Down. The value ranges from 1 to 255. The
maximum value of the priority is 254 because 255 is reserved for only the IP
address owner.
–
reduced
value-reduced
: specifies the value by which the priority decreases when
the tracked interface goes Down. The value ranges from 1 to 255. The lowest
priority is 1. When the priority is decreased to 1, a VRRP Advertisement packet
with priority 0 is sent.. The priority 0 is reserved in the system for special use.
When the backup device receives a VRRP Advertisement packet with the priority
0, it immediately switches to be the master device.
–
When a VRRP backup group tracks BFD sessions and interfaces concurrently, the
allowable maximum number of tracked BFD sessions and interfaces is eight.
–
When a BFD session or an interface tracked by the VRRP backup group goes
Down, the priority of the VRRP backup group may increase or reduce. If it is
configured that the priority always increases every time a BFD session or
interface goes Down, the priority of the VRRP backup group in the Backup
state can exceed that in the Master state when all the tracked BFD sessions or
interfaces go Down.
–
If it is configured that the priority does not always increase every time a BFD
session or interface goes Down, as long as one or some BFD sessions or
Quidway S3700 Series Ethernet Switches
Configuration Guide - Reliability
7 VRRP and VRRP6 Configuration
Issue 01 (2011-10-26)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
325