Send document comments to nexus7k-docfeedback@cisco.com.
19-9
Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide, Release 4.x
OL-20002-02
Chapter 19 Configuring HSRP
Configuring HSRP
5. ip [ip-address [secondary]]
6. exit
7. no shutdown
8. show hsrp [group group-number]
9. copy running-config startup-config
DETAILED STEPS
Command Purpose
Step 1
config t
Example:
switch# config t
switch(config)#
Enters configuration mode.
Step 2
interface
type number
Example:
switch(config)# interface ethernet 1/2
switch(config-if)#
Enters interface configuration mode.
Step 3
ip
ip-address/length
Example:
switch(config-if)# ip 192.0.2.2/8
Configures the IPv4 address of the interface.
Step 4
hsrp
group-number
Example:
switch(config-if)# hsrp 2
switch(config-if-hsrp)#
Creates an HSRP group and enters HSRP
configuration mode. The range is for HSRP version 1is
from 0 to 255. The range is for HSRP version 2 is from
0 to 4095. The default value is 0.
Step 5
ip [
ip-address
[secondary]]
Example:
switch(config-if-hsrp)# ip 192.0.2.1
Configures the virtual IP address for the HSRP group
and enables the group. This address should be in the
same subnet as the IPv4 address of the interface.
Step 6
exit
Example:
switch(config-if-hsrp)# exit
Exits HSRP configuration mode.
Step 7
no shutdown
Example:
switch(config-if)# no shutdown
Enables the interface
Step 8
show hsrp [group
group-number
]
Example:
switch(config-if)# show hsrp group 2
(Optional) Displays HSRP information.
Step 9
copy running-config startup-config
Example:
switch(config-if)# copy running-config
startup-config
(Optional) Saves this configuration change.