![Cisco Nexus 3548 series Command Reference Manual Download Page 162](http://html.mh-extra.com/html/cisco/nexus-3548-series/nexus-3548-series_command-reference-manual_2609162162.webp)
142
Cisco Nexus 3548 Switch NX-OS Unicast Routing Command Reference
OL-27852-01
Chapter Unicast Routing Commands
ip (HSRP)
ip (HSRP)
To assign a virtual address to a Hot Standby Router Protocol (HSRP) group, use the
ip
command. To
disable HSRP in the group, use the
no
form of this command.
ip
[
autoconfig
|
ip-address
[
secondary
]]
no ip
[
autoconfig
|
ip-address
[
secondary
]]
Syntax Description
Command Default
Disabled
Command Modes
HSRP configuration mode
Command History
Usage Guidelines
If you configure a virtual IP address, that address is the designated virtual IP address for the entire HSRP
group. For IPv4 groups, if you do not configure a virtual IP address, the gateway learns the virtual IP
address from another gateway in the same HSRP group. To allow HSRP to elect an active virtual gateway
(AVG), you must configure at least one gateway on the LAN with a virtual IP address.
Configuring the virtual IP address on the AVG always overrides a virtual IP address that is in use.
When you configure the
ip
command for an IPv4 HSRP group on an interface, the handling of proxy
Address Resolution Protocol (ARP) requests changes (unless proxy ARP was disabled). Hosts send ARP
requests to map an IP address to a MAC address. The HSRP gateway intercepts the ARP requests and
replies to the ARP requests on behalf of the connected nodes. If a forwarder in the HSRP group is active,
proxy ARP requests are answered using the MAC address of the first active forwarder in the group. If
no forwarder is active, proxy ARP responses are suppressed.
Note
You must configure all HSRP options before you use the
ip
command to assign a virtual IP address and
activate the HSRP group so that you can avoid authentication error messages and unexpected state
changes that can occur in other routers when a group is enabled first and then there is a delay before the
configuration is created. We recommend that you always specify an IP address.
autoconfig
(Optional) Generates a link-local address from the link-local prefix and a
modified EUI-64 format Interface Identifier, where the EUI-64 Interface
Identifier is created from the relevant HSRP virtual MAC address.
ip-address
(Optional) Virtual IP address for the virtual router (HSRP group). The IP
address must be in the same subnet as the interface IP address. You must
configure the virtual IP address for at least one of the routers in the HSRP group.
Other routers in the group will pick up this address. The IP address can be an
IPv4 address.
secondary
(Optional) Indicates that the IPv4 address is a secondary HSRP virtual address.
Release
Modification
5.0(3)A1(1)
This command was introduced.