R3166-R3206-HP High-End Firewalls High Availability Command Reference-6PW101
21
View
Interface view
Default level
2: System level
Parameters
virtual-router-id: VRRP group number, which ranges from 1 to 255.
interface interface-type interface-number: Specifies an interface to be tracked by its type and number.
reduced priority-reduced: Value by which the priority decrements. priority-reduced ranges from 1 to 255
and defaults to 10.
Description
Use the vrrp vrid track interface command to configure to track the specified interface.
Use the undo vrrp vrid track interface command to disable tracking the specified interface.
By default, no interface is tracked.
When the uplink interface of a router in a VRRP group fails, usually the VRRP group cannot be aware of
the uplink interface failure. If the router is the master of the VRRP group, hosts on the LAN are not able
to access external networks because of the uplink failure. This problem can be solved through tracking a
specified uplink interface. After you configure to monitor the uplink interface, when the uplink interface
is down or removed, the priority of the master is automatically decreased by a specified value, allowing
a higher priority router in the VRRP group to become the master.
Before executing the command, create a VRRP group on an interface and configure the virtual IP address
of the VRRP group.
If you configure an interface to be tracked on a router that is the IP address owner in a VRRP group, the
configuration does not take effect. If the router is not the IP address owner in the VRRP group later, the
configuration takes effect.
When the status of the tracked interface turns from down or removed to up, the corresponding router
automatically restores its priority.
The interface specified in this command can be a Layer 3 Ethernet interface, a VLAN interface, a Layer
3 aggregate interface
Related commands: display vrrp.
Examples
# On interface GigabitEthernet 0/1, set the interface to be tracked as VLAN-interface 2, making the
priority of VRRP group 1 on interface GigabitEthernet 0/1 decrement by 50 when VLAN-interface 2 is
down or removed.
<Sysname> system-view
[Sysname] interface GigabitEthernet 0/1
[Sysname-GigabitEthernet0/1] vrrp vrid 1 virtual-ip 10.1.1.1
[Sysname-GigabitEthernet0/1] vrrp vrid 1 track interface VLAN-interface 2 reduced 50
vrrp vrid virtual-ip
Syntax
vrrp vrid virtual-router-id virtual-ip virtual-address