Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

gratuitous ARP

Hello,


Will cisco switches/routers learn and add entry in ARP cache using GARP packet??...

i.e when a switch/router receives an GARP,will the source learning take place?

GARP--gratuitous ARP


Thanks

Stephen

========================== http://www.rconfig.com A free, open source network device configuration management tool, customizable to your needs! - Always vote on an answer if you found it helpful
4 REPLIES

Re: gratuitous ARP

Hi Stephen,

As the defination about the Gratutous ARP says it is a feature of the Address Resolution Protocol wherein the host broadcasts an ARP request for its own hardware address.A gratuitous ARP could be a request or a reply. A gratuitous ARP Request is the one where the Source and Destination IP address will be of the host itself which issues the request and is broadcast to the subnet and normally there will not be a reply.

This concept is used to avoid ip confilct in the network by single device in the network.


A Gratuitious ARP reply is again the one where there was no request.

The switch to which the device is connected can update its MAC Address table against the switch port.

Hope that clear your query !!

Regards

Ganesh.H

Hall of Fame Super Blue

Re: gratuitous ARP

stephen.stack wrote:

Hello,


Will cisco switches/routers learn and add entry in ARP cache using GARP packet??...

i.e when a switch/router receives an GARP,will the source learning take place?

GARP--gratuitous ARP


Thanks

Stephen

Stephen

Basically yes, a switch/router will update it's arp cache when it sees a gratuituos arp. As Ganesh said it is used to avoid address conflicts but the other major use i have seen is in clustering solutions where a machine fails over to another and the new active machine sends out a gratuitous arp to update the switch mac-address tables.

Jon

Hall of Fame Super Silver

Re: gratuitous ARP

Hello Stephen,

generally speaking with default settings the answer is yes.

For example, HSRP uses a gratuoitus ARP when a change of state happens with the objective to update Layer2 CAM table.

To be noted the real objective of gratuituos ARP is to update the ARP table changing an IP address to MAC entry, updating a L2 CAM table is a side effect but it is used too.

so even if VIP IP address and VIP MAC address doesn't change the information about what port the VIP MAC is learned is updated.

There are security features that disable the learning from gratuitous ARP

there is a global command

no ip gratuitous-arps

see
http://www.cisco.com/en/US/docs/switches/lan/catalyst6500/ios/12.2SX/configuration/guide/autosec.html#wp1093336

Hope to help
Giuseppe

Re: gratuitous ARP

Guys

Thanks for all your comments. I think that nails/confirms it for me.

Regards


Stephen

========================== http://www.rconfig.com A free, open source network device configuration management tool, customizable to your needs! - Always vote on an answer if you found it helpful
20646
Views
15
Helpful
4
Replies
CreatePlease login to create content