Configuring Hsrp Object Tracking - Cisco Nexus 3000 Series Configuration Manual

Nx-os unicast routing configuration guide, nx-os release 5.0(3)u1(1)
Hide thumbs Also See for Nexus 3000 Series:
Table of Contents

Advertisement

Configuring HSRP
S e n d d o c u m e n t c o m m e n t s t o n e x u s 3 k - d o c f e e d b a c k @ c i s c o . c o m
This example shows how to configure MD5 authentication for HSRP on Ethernet 1/2 after creating the
key chain:
switch# configure terminal
switch(config)# key chain hsrp-keys
switch(config-keychain)# key 0
switch(config-keychain-key)# key-string 7 zqdest
switch(config-keychain-key) accept-lifetime 00:00:00 Jun 01 2008 23:59:59 Sep 12 2008
switch(config-keychain-key) send-lifetime 00:00:00 Jun 01 2008 23:59:59 Aug 12 2008
switch(config-keychain-key) key 1
switch(config-keychain-key) key-string 7 uaeqdyito
switch(config-keychain-key) accept-lifetime 00:00:00 Aug 12 2008 23:59:59 Dec 12 2008
switch(config-keychain-key) send-lifetime 00:00:00 Sep 12 2008 23:59:59 Nov 12 2008
switch(config-keychain-key)# interface ethernet 1/2
switch(config-if)# no switchport
switch(config-if)# hsrp 2
switch(config-if-hsrp)# authenticate md5 key-chain hsrp-keys
switch(config-if-hsrp)# copy running-config startup-config

Configuring HSRP Object Tracking

You can configure an HSRP group to adjust its priority based on the availability of other interfaces or
routes. The priority of a switch can change dynamically if it has been configured for object tracking and
the object that is being tracked goes down. The tracking process periodically polls the tracked objects
and notes any value change. The value change triggers HSRP to recalculate the priority. The HSRP
interface with the higher priority becomes the active router if you configure the HSRP interface for
preemption.
HSRP supports tracked objects and track lists. See
information on track lists.
BEFORE YOU BEGIN
Ensure that you have enabled the HSRP feature (see the
page
SUMMARY STEPS
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
Cisco Nexus 3000 Series NX-OS Unicast Routing Configuration Guide, NX-OS Release 5.0(3)U1(1)
12-12
12-7).
configure terminal
track object-id interface interface-type number {ip routing | line-protocol}
or
track object-id ip route ip-prefix/length reachability
interface interface-type slot/port
no switchport
hsrp group-number [ipv4]
priority [value]
track object-number [decrement value]
preempt [delay minimum seconds] [reload seconds] [sync seconds]
(Optional) show hsrp interface interface-type number
(Optional) copy running-config startup-config
Chapter 12
Chapter 14, "Configuring Object Tracking"
"Enabling the HSRP Feature" section on
Configuring HSRP
for more

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents