![Cisco Nexus 3548 series Command Reference Manual Download Page 159](http://html.mh-extra.com/html/cisco/nexus-3548-series/nexus-3548-series_command-reference-manual_2609162159.webp)
139
Cisco Nexus 3548 Switch NX-OS Unicast Routing Command Reference
OL-27852-01
Chapter Unicast Routing Commands
hsrp
hsrp
To enter Hot Standby Router Protocol (HSRP) configuration mode and create an HSRP group, use the
hsrp
command. To disable HSRP, use the
no
form of this command.
hsrp
group-number
ipv4
no hsrp
group-number
ipv4
Syntax Description
Command Default
Disabled
Command Modes
Interface configuration mode
Command History
Usage Guidelines
You must globally enable HSRP before you can configure any HSRP options or create an HSRP group.
This command does not require a license.
Examples
This example shows how to create and activate an HSRP group:
switch#
configure terminal
switch(config)#
interface ethernet 0
switch(config-if)#
no switchport
switch(config-if)#
ip address 192.168.0.5 255.255.255.0
switch(config-if)#
hsrp 1
switch(config-if-hsrp)#
Related Commands
group-number
Number of HSRP groups that can be configured on a Gigabit Ethernet port,
including the main interfaces and subinterfaces. The range is from 1 to 255.
The default value is 0.
ipv4
(Optional) Sets the HSRP group for IPv4.
Release
Modification
5.0(3)A1(1)
This command was introduced.
Command
Description
feature hsrp
Enables the HSRP configuration.
show hsrp
Displays HSRP information.
ip address
Creates a virtual IP address for the HSRP group. The IP address must be in
the same subnet as the interface IP address.