1-9
Configuring VRRP Tracking
Follow these steps to configure VRRP tracking:
To do… Use the command… Remarks
Enter system view
system-view
—
Enter VLAN interface view
interface Vlan-interface
vlan-id
—
Configure a virtual router IP
address
vrrp vrid virtual-router-id
virtual-ip virtual-address
Required
Enable the interface tracking
function
vrrp vrid virtual-router-id track
interface vlan-interface
vlan-id [ reduced
value-reduced ]
Optional
By default, the VLAN interface
priority decreases by 10.
Return to system view
quit
—
Enter Ethernet port view
interface interface-type
interface-number
—
Enable the port tracking
function
vrrp vlan-interface vlan-id
vrid virtual-router-id track
[ reduced value-reduced ]
Required
By default, the port priority
decreases by 10.
z The port to be tracked can be in the VLAN which the VLAN interface of the VRRP group belongs to.
z Up to eight ports can be tracked simultaneously through the port tracking function.
Displaying and Maintaining VRRP
To do… Use the command… Remarks
Display VRRP statistics
information
display vrrp statistics [ interface
vlan-interface vlan-id [ vrid
virtual-router-id ] ]
Display VRRP state information
display vrrp [ verbose ] [ interface
vlan-interface vlan-id [ vrid
virtual-router-id ] ]
Available in any
view
Clear VRRP statistics
information
reset vrrp statistics [ interface
vlan-interface vlan-id [ vrid
virtual-router-id ] ]
Available in user
view