linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Questions about ARP
@ 2003-08-08 15:04 Steven Scholz
  2003-08-08 18:24 ` Dan Malek
  0 siblings, 1 reply; 15+ messages in thread
From: Steven Scholz @ 2003-08-08 15:04 UTC (permalink / raw)
  To: LinuxPPC


Hi there,

Microsoft uses "Automatic Private IP Addressing" to grab an IP address
if a DHCP request fails.

In the section "Resolving IP Conflicts" in
http://www.winnetmag.com/Articles/Index.cfm?ArticleID=7464
it says

How does the client know the IP address it's using isn't in use by
another machine? It uses a gratuitous Address Resolution Protocol
(ARP) to resolve potential conflicts. Let’s say the first client that
boots up wants to assign itself an IP address of 169.254.10.20. It
sends out a gratuitous ARP, but no one answers, so it keeps the
address ... Next, a third client boots up and picks 169.254.10.20, the
same address the first client chose. The first client tells the third
client that it's already using that IP address, so the third client
tries a different IP address and keeps it if there's no conflict.

I can see this behaviour if I connect an embedded DOS TCP/IP device to
a Windows XP computer (using a cross-linked twisted pair) and force
the IP of the DOS device to be the same as the one that the Windows XP
computer is going to claim. Fair enough.

But when I connect my MPC8xx board with Linux it seems that Linux is
not responding to the ARP requests done by the Windows machine.
Result: Both machine end up with the same IP address.

Did I miss something?
I did not find an kernel option saying something about ARP...

Any ideas?

Could someone maybe try this as well? Please?

Thanks a million,

Steven


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 15+ messages in thread
* RE: Questions about ARP
@ 2003-08-12 14:05 Dave Ellis
  2003-08-12 15:40 ` Dan Malek
  0 siblings, 1 reply; 15+ messages in thread
From: Dave Ellis @ 2003-08-12 14:05 UTC (permalink / raw)
  To: 'Steven Scholz'; +Cc: 'LinuxPPC', 'Dan Malek'


Steven Scholz wrote:

> Windows is checking for duplicate addresses using ARP packets
> with source _and_
> destination address set to the address in question. So of
> course Linux won't answer it!
>
> But I can't find a single word in the RFC2131
> (http://www.faqs.org/rfcs/rfc2131.html)
> saying that the
> Source Address _must_ set to 0.0.0.0!!!!

It is actually in RFC1541 "... The client may
   perform a check on the suggested address to ensure that the address
   is not already in use.  For example, if the client is on a network
   that supports ARP, the client may issue an ARP request for the
   suggested request.  When broadcasting an ARP request for the
   suggested address, the client must fill in its own hardware address
   as the sender's hardware address, and 0 as the sender's IP address,
   to avoid confusing ARP caches in other hosts on the same subnet."

Dave

Dave Ellis
~~~~~~~~~~~~~~~~~~~~~~~~~~
SIXNET - "Leading the Industrial Ethernet Revolution"
331 Ushers Road,   P.O. Box 767, Clifton Park, NY 12065 USA
Tel +1 (518) 877-5173   Fax +1 (518) 877-8346
Email me at: dge@sixnetio.com
Detailed product info: www.sixnetio.com
~~~~~~~~~~~~~~~~~~~~~~~~~~


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2003-08-12 23:09 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-08 15:04 Questions about ARP Steven Scholz
2003-08-08 18:24 ` Dan Malek
2003-08-12 12:34   ` Steven Scholz
2003-08-12 13:56     ` Build issues with 2.6.0-test3 Gary Thomas
2003-08-12 15:25       ` Tom Rini
2003-08-12 15:39         ` Matt Porter
2003-08-12 15:40         ` Gary Thomas
2003-08-12 15:46           ` Tom Rini
2003-08-12 19:13             ` Gary Thomas
2003-08-12 21:54               ` Tom Rini
2003-08-12 23:09                 ` Thomas Gleixner
2003-08-12 22:23                   ` Tom Rini
2003-08-12 15:39     ` Questions about ARP Dan Malek
  -- strict thread matches above, loose matches on Subject: below --
2003-08-12 14:05 Dave Ellis
2003-08-12 15:40 ` Dan Malek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).