Saturday, March 28, 2015

HSRP Gratuitous ARP

Information About HSRP Gratuitous ARP

HSRP and ARP

HSRP works when the hosts are configured for proxy ARP. When the active HSRP device receives an ARP request for a host that is not on the local LAN, the device replies with the MAC address of the virtual router. If the active device becomes unavailable or its connection to the remote LAN goes down, the device that becomes the active device receives packets addressed to the virtual router and transfers them accordingly. If the Hot Standby state of the interface is not active, proxy ARP responses are suppressed.

HSRP Gratuitous ARP

The HSRP Gratuitous ARP feature configures HSRP to check that the entries in the ARP cache are correct and to send periodic gratuitous ARP packets from one or more HSRP active groups. By default, HSRP sends out three gratuitous ARP packets from an HSRP group when the group state changes to Active. HSRP sends the first gratuitous ARP packet when the group becomes active. The second two gratuitous ARP packets are sent 2 and 4 seconds later.

The HSRP Gratuitous ARP feature enhances the capability of HSRP so that the number and frequency of gratuitous ARP packets sent by an active HSRP group are configurable. Use the standby arp gratuitous command in interface configuration mode to configure a specific number of gratuitous ARP packets to be sent at a specified interval.

Use the standby send arp command in EXEC mode to configure HSRP to send a single gratuitous ARP packet for each active group. When the standby send arp command is configured, HSRP checks that the entries in the ARP cache are correct prior to sending a gratuitous ARP packet. If an ARP entry is incorrect, HSRP will try to readd it. Static or alias ARP entries cannot be overwritten by HSRP.

Configuring the standby send arp command ensures that a host ARP cache is updated prior to heavy CPU-usage processes or configurations are started.

When CPU usage is above 50 percent due to heavy ARP traffic combined with moderate software switched IP traffic, ARP refresh requests could fail, causing some application servers to lose their default gateway ARP entries and fail to communicate with the rest of the network. In some scenarios, operations such as enabling a large access list can cause ARP requests from hosts to be delayed, causing the host to have no default gateway for a short time. A periodic gratuitous ARP packet sent from the HSRP active device refreshes the host ARP cache before it expires.

How to Configure HSRP Gratuitous ARP

Configuring HSRP Gratuitous ARP

Perform this task to configure HSRP to check that the entries in the ARP cache are correct and to send periodic gratuitous ARP packets from one or more HSRP active groups. By default, HSRP sends out three gratuitous ARP packets from an HSRP group when the group state changes to Active. HSRP sends the first gratuitous ARP packet when the group becomes active. The second two gratuitous ARP packets are sent 2 and 4 seconds later.

SUMMARY STEPS

1.    enable

2.    standby send arp [interface-type interface-number [group-number]]

3.    configure terminal

4.    interface type number

5.    standby arp gratuitous [count number] [interval seconds]

6.    end

7.    show standby arp gratuitous [type-number]


DETAILED STEPS

 

Command or Action

Purpose

Step 1

enable


Example:

Device> enable

 

Enables privileged EXEC mode.

·         Enter your password if prompted.

 

Step 2

standby send arp [interface-type interface-number [group-number]]


Example:

Device# standby send arp Ethernet 1/1 1

 

(Optional) Configures HSRP to send a single gratuitous ARP packet for each active HSRP group.

 

Step 3

configure terminal


Example:

Device# configure terminal

 

Enters global configuration mode.

 

Step 4

interface type number


Example:

Device(config)# interface Ethernet1/1

 

Configures an interface type and enters interface configuration mode.

 

Step 5

standby arp gratuitous [count number] [interval seconds]


Example:

Device(config-if)# standby arp gratuitous count 3 interval 4

 

Configures the number of gratuitous ARP packets sent by an active HSRP group, and how often they are sent.

 

Step 6

end


Example:

Device(config-if)# end

 

(Optional) Returns to privileged EXEC mode.

 

Step 7

show standby arp gratuitous [type-number]


Example:

Device# show standby arp gratuitous ethernet1/1

 

(Optional) Displays the number and configured interval of gratuitous ARP packets sent by HSRP.

 

Example

The following is sample output from the show standby arp gratuitous command:

Device# show standby arp gratuitous ethernet 1/1
 
HSRP Gratuitous ARP
Interface          Interval  Count    
Ethernet1/1 4         3 

Configuration Examples for HSRP Gratuitous ARP

Example: Configuring HSRP Gratuitous ARP

The following example shows how to configure HSRP to check that the entries in the ARP cache are correct and to send three gratuitous ARP packets at 4-second intervals when an HSRP group on the interface changes to active state:

Device> enable
Device# standby send arp Ethernet 1/1 1
Device# configure terminal
Device(config)# interface Ethernet 1/1
Device(config-if)# standby arp gratuitous count 3 interval 4
Device(config-if)# end
Device# show standby arp gratuitous ethernet 1/1
 
HSRP Gratuitous ARP 
Interface   Interval   Count 
Ethernet1/1 4           3 

 




Please consider the environment before printing this e-mail

Disclaimer: This  communication  is  for the exclusive use of the intended recipient(s) and  shall  not attach any liability on the originator or ITC Infotech India Ltd./its  Holding company/ its Subsidiaries/ its Group Companies. If you are the addressee, the contents of this e-mail are intended for your use only and it shall  not be forwarded to any third party, without first obtaining written authorization from the originator or ITC Infotech India Ltd./ its Holding company/its  Subsidiaries/ its Group Companies. It may contain information which is confidential and legally privileged and the same shall not be used or dealt with  by any  third  party  in  any manner whatsoever without the specific consent  of  ITC  Infotech India Ltd./ its Holding company/ its Subsidiaries/ its Group Companies.

No comments: