23 PORT TRACKING CONFIGURATION
Introduction to the
Port Tracking Function
With the port tracking function enabled, you can specify to track the link state of the
master’s uplink port and decrease the priority of the switch when the port fails.
This in turn triggers the new master to be determined in the backup group.
Port Tracking
Configuration
This section contains configuration information for Port Tracking.
Configuring the Port
Tracking Function
The port to be tracked can be in the VLAN which the backup group belongs to.
Up to eight ports can be monitored simultaneously.
Port Tracking
Configuration Example
Network requirements
■Backup group 1 comprises two switch, which operate as the master switch and a
backup switch.
■The IP addresses of the master and the backup switches are 10.100.10.2 and
10.100.10.3.
■The master switch is connected to the upstream network through its
Ethernet1/0/1 port. The backup switch is connected to the upstream network
through its Ethernet1/0/2 port.
■The virtual router IP address of the backup group is 10.100.10.1.
■Enable the port tracking function on Ethernet1/0/1 port of the master switch and
specify that the priority of the master decreases by 50 when Ethernet1/0/1 port
fails, which triggers new master switch being determined in the backup group.
Table589 Configure the port tracking function
Operation Command Description
Enter system view system-view -
Create a VLAN vlan vlan-id This operation creates the VLAN to
which the backup group corresponds.
The vlan-id argument is the ID of the
VLAN.
Add an Ethernet port
to the VLAN
port interface-type
interface-number
-
Quit to system view quit -
Enter VLAN interface
view
interface vlan-interface vlan-id Required
Enable the port
monitor function
vrrp vlan-interface vlan-id vrid
virtual-router-ID track [ reduced
value-reduced ]
virtual-router-ID: VRRP backup group
ID.
value-reduced: The value by which the
priority of a device is to decrease. This
argument defaults to 10.
vlan-id: ID of the VLAN interface.