LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-19-2007, 02:56 PM   #1
newvivs
LQ Newbie
 
Registered: Oct 2002
Posts: 8

Rep: Reputation: 0
Gratuitous ARP in Slackware


Hi,
I am running Slackware 10.2(kernel 2.6.16). I send a gratuitous ARP reply using arping command from machine A. I hear the ARP(using Ethereal) on the other machines in the network since the reply is broadcast. But unfortunately the kernel arp table at the other machines is not updated with the MAC address of machine A. Does anybody know if this is a Slackware thing and the kernel does not respond to gratuitous arps?
Any help in this matter will be appreciated.
 
Old 03-20-2007, 11:47 AM   #2
pdw_hu
Member
 
Registered: Nov 2005
Location: Budapest, Hungary
Distribution: Slackware, Gentoo
Posts: 346

Rep: Reputation: Disabled
Taken from: http://www.geocities.com/SiliconVall...twork/arp.html

Gratuitous ARP is used for the following:

1. In a properly configured network, there will not be an ARP reply for a gratuitous ARP request. But if another host in the network is also configured with the same IP address as the source host, then the source host will get an ARP reply. In this way, a host can determine whether another host is also configured with its IP address.
2. When the network interface card in a system is changed, the MAC address to its IP address mapping is changed. In this case, when the host is rebooted, it will send an ARP request packet for its own IP address. As this is a broadcast packet, all the hosts in the network will receive and process this packet. They will update their old mapping in the ARP cache with this new mapping.

There's your answer in 1.

Last edited by pdw_hu; 03-20-2007 at 11:52 AM.
 
Old 03-20-2007, 12:43 PM   #3
newvivs
LQ Newbie
 
Registered: Oct 2002
Posts: 8

Original Poster
Rep: Reputation: 0
I don't expect a reply since it is gratuitous(hence implied). but the nodes receiving the gratuitous ARP do not update their arp tables with the MAC address of the sending node. In a normal ARP request the node receiving it, not only replies to it but also updates its own ARP table. I was wondering why the kernel would not do the same in case of a gratuitous ARP.
 
Old 03-20-2007, 02:41 PM   #4
regis_n_bits
Member
 
Registered: Mar 2006
Distribution: Slackware64-15.0
Posts: 103

Rep: Reputation: Disabled
It may be that the the arp table is only updated for arp requests/replies initiated from that machine, or if an old arp entry already exists. In your case, if machine A tried to ping the other machine, the first messages would be a broadcast arp request asking who has address "a.b.c.d". The other machine would respond with an arp response directly to machine A, and then machine A would add the arp entry to its arp table.

Otherwise, in a large network, a computer would have be constantly adding entries for every computer that rebooted. The only devices that really use the gratuitous arps would be switches, and any computers that might have the same IP address (i.e. a conflicting address).

Try pinging your new computer first from machine A, then change the address on the new computer. Then do a gratuitous arp. I think the arp table on machine A should get updated with the new IP address.
 
Old 03-20-2007, 04:31 PM   #5
newvivs
LQ Newbie
 
Registered: Oct 2002
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks for the response. I was hoping to avoid the initial ping and wanted the arp table on all machines to get updated with the MAC address of machine A since A is sending the gratuitous ARPs. But it seems that if there is no existing ARP entry in these machines about A, then they certainly don't add one unless they have initiated an ARP session(sent an ARP request and received a reply) with machine A.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange ARP behavior : A linux server responds to all ARP requests Hdvd21 Linux - Networking 4 10-24-2013 05:02 AM
Gratuitous ARP in Debian rickthemick Debian 2 12-20-2004 08:11 PM
Disabling ARP probes after receiving an ARP request AltecLansingMan Linux - Networking 1 03-30-2004 01:25 PM
Gratuitous ARP himalayas Linux - Networking 3 06-06-2003 03:19 AM
How to create an proxyarp entry in arp table by using arp command? himalayas Linux - Networking 0 06-04-2003 04:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration