Description
Example
vrrp vrid virtual-ip
Syntax
View
Parameter
Description
Use the
vrrp vrid track interface
interface.
Use the
undo vrrp vrid track interface
specified interface.
By default, no interface is being tracked.
Note that:
Before executing the command, create a standby group on an interface and
■
configure the virtual IP address of the standby group.
When the router is the owner of the IP address, you cannot perform the
■
configuration.
When the status of the tracked interface turns from down to up, the
■
corresponding router restores its priority automatically.
The interface specified in this command can be a Layer 3 Ethernet interface, a
■
VLAN interface, a synchronous/asynchronous serial interface, an MP-group
interface, a dialer interface or a BRI interface. At present, the Layer 2 protocol
used by the tracked synchronous/asynchronous serial interfaces should only be
PPP protocol; the dialer interface should function as the PPPoE client and
operate in the permanent online mode and the BRI interface should work in
the dedicated line mode.
# On interface Ethernet 1/0, set the interface to be tracked as Serial 2/0, making
the priority of standby group 1 on interface Ethernet 1/0 decrement by 50 when
Serial 2/0 goes down.
<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 track interface serial2/0 reduced 50
vrrp vrid virtual-router-id virtual-ip virtual-address
undo vrrp vrid virtual-router-id [ virtual-ip virtual-address ]
Interface view
virtual-router-id: VRRP standby group number, in the range 1 to 255.
virtual-address: Virtual IP address.
Use the
vrrp vrid virtual-ip
that you add a virtual IP address or add a virtual IP address to it after that.
Use the
undo vrrp vrid
command to configure to track the specified
command to disable tracking the
command to create a standby group the first time
virtual-router-id command to remove a standby group.
2235