Specifications
Send document comments to nexus3k-docfeedback@cisco.com.
14-9
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
DETAILED STEPS
Note You should use the no shutdown command to enable the interface after you finish the configuration.
This example shows how to configure an HSRP group on Ethernet 1/2:
switch# configure terminal
switch(config)# interface ethernet 1/2
Command Purpose
Step 1
configure terminal
Example:
switch# configure terminal
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
no switchport
Example:
switch(config-if)# no switchport
Configures the interface as a Layer 3 routed interface.
Step 4
ip ip-address/length
Example:
switch(config-if)# ip 192.0.2.2/8
Configures the IPv4 address of the interface.
Step 5
hsrp group-number [ipv4]
Example:
switch(config-if)# hsrp 2
switch(config-if-hsrp)#
Creates an HSRP group and enters hsrp configuration
mode. The range for HSRP version 1 is from 0 to 255.
The range is for HSRP version 2 is from 0 to 4095. The
default value is 0.
Step 6
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 7
exit
Example:
switch(config-if-hsrp)# exit
Exits HSRP configuration mode.
Step 8
no shutdown
Example:
switch(config-if)# no shutdown
Enables the interface.
Step 9
show hsrp [group group-number] [ipv4]
Example:
switch(config-if)# show hsrp group 2
(Optional) Displays HSRP information.
Step 10
copy running-config startup-config
Example:
switch(config-if)# copy running-config
startup-config
(Optional) Saves this configuration change.