O'Reilly logo

Cisco IOS in a Nutshell, 2nd Edition by James Boney

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required