Specifications

Send document comments to nexus3k-docfeedback@cisco.com.
14-10
Cisco Nexus 3000 Series NX-OS Unicast Routing Configuration Guide, Release 5.0(3)U2(2)
OL-25782-02
Chapter 14 Configuring HSRP
Configuring HSRP
switch(config-if)# no switchport
switch(config-if)# ip 192.0.2.2/8
switch(config-if)# hsrp 2
switch(config-if-hsrp)# ip 192.0.2.1
switch(config-if-hsrp)# exit
switch(config-if)# no shutdown
switch(config-if)# copy running-config startup-config
Configuring the HSRP Virtual MAC Address
You can override the default virtual MAC address that HSRP derives from the configured group number.
To manually configure the virtual MAC address for an HSRP group, use the following command in hsrp
configuration mode:
To configure HSRP to use the burned-in MAC address of the interface for the virtual MAC address, use
the following command in interface configuration mode:
Authenticating HSRP
You can configure HSRP to authenticate the protocol using cleartext or MD5 digest authentication. MD5
authentication uses a key chain (see the Cisco Nexus 7000 Series NX-OS Security Configuration Guide,
Release 5.x).
BEFORE YOU BEGIN
Ensure that you have enabled the HSRP feature (see the “Enabling the HSRP Feature” section on
page 14-7).
You must configure the same authentication and keys on all members of the HSRP group.
Ensure that you have created the key chain if you are using MD5 authentication.
SUMMARY STEPS
1. configure terminal
Command Purpose
mac-address string
Example:
switch(config-if-hsrp)# mac-address
5000.1000.1060
Configures the virtual MAC address for an HSRP
group. The string uses the standard MAC address
format (xxxx.xxxx.xxxx).
Command Purpose
hsrp use-bia [scope interface]
Example:
switch(config-if)# hsrp use-bia
Configures HSRP to use the burned-in MAC
address of the interface for the HSRP virtual MAC
address. You can optionally configure HSRP to use
the burned-in MAC address for all groups on this
interface by using the scope interface keywords.