Subscribe Subscribe | Subscribe Comments RSS
Subscribe in Bloglines

Add to netvibes
Add to Google Reader or Homepage

Gratuitous ARP 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.

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

Some of the common usage of Gratuitous ARP are

Avoid/Resolve IP Conflicts

Gratuitous ARP is primarily used to resolve IP conflict issues (another system using the same IP address). When a system gets a ARP request with the Source IP address same as its own then it knows there is IP conflict and alerts accordingly. In Solaris Operating System, this occurs at the boot time to detect if there is an IP conflict.

Update Hardware changes

Gratuitous ARP is also used to send  updated hardware address information. Systems that receive gratuitous ARP reply packets will automatically update the ARP table with the IP address with the new MAC Address. For example, the switch to which the device is connected can update its MAC Address table against the switch port.

Clustering & High Availability Solutions

Gratuitous ARP is used in Clustering and High Availability Solution. This could be a simple NIC resilience on the same system or a High Availability between two systems. When the active interface goes down, the IP gets reconfigured to the secondary NIC or to the secondary device. When this change happens, a Gratuitous  ARP reply is send to all the devices in the network announcing the MAC change so they can update their ARP tables. The Linux HA project uses Gratuitous ARP for failover process.

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

6 Comments so far »

  1. by Ramkumar U, on June 13 2008 @ 4:20 am

     

    This information is very useful..But required more about Gratitous arp..

  2. by Ben, on July 17 2008 @ 2:20 pm

     

    I was wondering if and how Microsoft Exchange Server 2007 supports Gratuitous ARP?

    Thanks.

  3. by Set Gratuitous ARP requests in Windows Server 2008 and Windows Vista | Windows Reference, on August 17 2008 @ 10:54 am

     

    [...] This Post If you’re new here, you may want to subscribe to our RSS feed. Thanks for visiting! Gratuitous ARP is a feature of Address Resolution Protocol in which a Gratuitous ARP request is sent by a host for [...]

  4. by Landon Gaus, on November 22 2010 @ 12:17 pm

     

    To send gratuitous ARP packets in Windows 2008 and above, download arping for Windows (Thomas Habets version), copy it to the server you wish to update ARP for, and run arping -S . This will broadcast gratuitous ARP packets since Windows no longer will.

  5. by Landon Gaus, on November 22 2010 @ 12:19 pm

     

    That last post removed part of the command. The correct command is arping.exe ipaddr -S ipaddr. Replace ip-addr with your IP address.

  6. by apartamenty zakopane, on December 20 2010 @ 4:48 am

     

    Its really helpfull and informative , Amazing work ……

Comment RSS · TrackBack URI

Leave a comment

Name: (Required)

eMail: (Required)

Website:

Comment: