R3204P16-HP Load Balancing Module High Availability Command Reference-6PW101
19
If the uplink interface of a router in a VRRP group fails, normally the VRRP group cannot be aware of the
uplink failure. If the router is the master of the VRRP group, hosts on the LAN will not be able to access
the external network because of the uplink failure. You can solve the problem through the function of
tracing a specified interface. In this case, it is the 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.
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 or removed to up, the corresponding router
restores its priority automatically.
The interface specified in this command can be a Layer 3 Ethernet interface or a VLAN interface.
Related commands: display vrrp.
Examples
# On interface Ten-GigabitEthernet 0/0.1, set the interface to be tracked as Ten-GigabitEthernet 0/0.2,
making the priority of VRRP group 1 on interface Ten-GigabitEthernet 0/0.1 decrement by 50 when
Ten-GigabitEthernet 0/0.2 is down or removed.
<Sysname> system-view
[Sysname] interface Ten-GigabitEthernet 0/0.1
[Sysname-Ten-GigabitEthernet0/0.1] vrrp vrid 1 virtual-ip 10.1.1.1
[Sysname-Ten-GigabitEthernet0/0.1] vrrp vrid 1 track interface Ten-GigabitEthernet 0/0.2
reduced 50
vrrp vrid virtual-ip
Syntax
vrrp vrid virtual-router-id virtual-ip virtual-address
undo vrrp vrid virtual-router-id [ virtual-ip virtual-address ]
View
Interface view
Default level
2: System level
Parameters
virtual-router-id: VRRP group number, which ranges from 1 to 255.
virtual-address: Virtual IP address.
Description
Use the vrrp vrid virtual-ip command to create a VRRP group, and configure a virtual IP address for it, or,
add another virtual IP address for an existing VRRP group.
Use the undo vrrp vrid virtual-ip command to remove an existing VRRP group or the virtual IP address of
the VRRP group.
By default, no VRRP group is created.