Name

standby track — interface

Synopsis

standby [group] track interface [interface-priority]
no standby [group] track interface [interface-priority]

Configures

Hot Standby Routing Protocol (HSRP)

Default

Group, 0; interface priority, 10

Description

This command configures the HSRP interface to track another interface. If the other interface goes down, the HSRP interface’s standby priority decreases by the value interface-priority. The rationale for this behavior is that if the tracked interface is down, this router is less desirable as a standby router. The standby track command must be used in combination with the preempt command.

Example

In this example, ethernet0 is the HSRP interface tracking interface serial0. If serial0 goes down, ethernet0’s priority is decreased by 20. When serial0 comes back up, ethernet0’s priority is increased by 20 (i.e., returned to its original value).

interface ethernet0
  standby 1 ip 10.10.1.1
  standby 1 preempt
  standby 1 track serial0 20

Get CISCO IOS in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.