The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
This chapter describes the Cisco NX-OS Virtual Router Redundancy Protocol (VRRP) commands that begin with T.
To modify the priority for a virtual router based on a tracked object, use the track command. To disable priority tracking for a virtual router, use the no form of this command.
track object-number [decrement value]
no track object-number [decrement value]
object-number |
Number for a configured tracked object. The range is from 1 to 500. |
decrement value |
(Optional) Decrements the VRRP priority if the tracked object is down. The range is from 1 to 254. |
None
VRRP configuration mode
|
|
---|---|
5.0(3)N1(1) |
This command was introduced. |
Use the track (VRRP) command to change the priority of the virtual router based on the state of a configured tracked object. Use the track command to configure the tracked object. When the tracked object is down, the priority reverts to the priority value for the virtual router. When the tracked object is up, the priority of the virtual router is restored to the original value.
This command does not require a license.
This example shows how to enable object tracking for a virtual router:
switch# configure terminal
switch(config)# track 33 ip route 192.0.2.0/24 reachability
switch(config)# interface ethernet 2/1
switch(config-if)# no switchport
switch(config-if)# vrrp 250
switch(config-if-vrrp)# track 33 priority 2
switch(config-if-vrrp)#
To track the priority for a virtual router based on an interface, use the track interface command. To disable priority tracking for a virtual router, use the no form of this command.
track interface {ethernet slot/port | port-channel number[.sub_if_number]} priority value
no track interface {ethernet slot/port | port-channel number[.sub_if_number]} priority value
Disabled
VRRP configuration mode
|
|
---|---|
5.0(3)N1(1) |
This command was introduced. |
Use the track command to change the priority of the virtual router based on the state of another interface in the switch. When the tracked interface is down, the priority reverts to the priority value for the virtual router. When the tracked interface is up, the priority of the virtual router is restored to the interface state tracking value.
Note Interface state tracking will not be operational unless you enable preemption on the interface.
This command does not require a license.
This example shows how to enable interface state tracking for a virtual router:
switch# configure terminal
switch(config)# interface ethernet 2/1
switch(config-if)# no switchport
switch(config-if)# vrrp 250
switch(config-if-vrrp)# track interface ethernet 2/2 priority 2
switch(config-if-vrrp)#
|
|
---|---|
feature vrrp |
Enables VRRP. |
show vrrp |
Displays VRRP configuration information. |
track (VRRP) |
Tracks an object to modify the VRRP priority. |
vrrp |
Configures a VRRP group. |