Re: ARP and alias IPs

From: Remco Post (r.post@sara.nl)
Date: Thu Sep 05 2002 - 11:05:32 EST


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On donderdag, september 5, 2002, at 05:34 , Alex Riesen wrote:

> On Thu, Sep 05, 2002 at 10:09:50AM -0500, Andrew Ryan wrote:
>> The linux implementation of ARP is causing me problems. Linux sends
>> out an
>> ARP request with the default interface as the sender address, rather
>> than then
>> interface the request came on.
>
> http://www.rfc-editor.org/rfc/std/std37.txt
>
>> For example
>>
>> eth0 10.1.1.100
>> eth0:1 192.16.1.101
>
> Are you really expect an aliased interface to work the way you
> described?

if I read this version of the internet standard correctly, it should
respond with the ip address that was requested:

"It then notices that it is a request, so it swaps fields, putting
EA(Y) in the new sender Ethernet address field (ar$sha), sets the
opcode to reply, and sends the packet directly (not broadcast) to
EA(X)."

Meaning that the reply must come from the ip-address that was beeing
looked for in the first place, not just any address used on that
interface. Though at the time of writing this was not something that was
in use at all I guess.

So yes, I think it is reasonable to assume that if I do an arp request
for one address, I do not get a reply for another address that happens
to be on the same interface... There is no way of determining that this
is indeed the address I was looking for in the first place. I have not
checked to see if Linux does this, but if it does it is plain wrong...
- ---
Met vriendelijke groeten,

Remco Post

SARA - Stichting Academisch Rekencentrum Amsterdam http://www.sara.nl
High Performance Computing Tel. +31 20 592 8008 Fax. +31 20 668 3167
PGP keys at http://home.sara.nl/~remco/keys.asc

"I really didn't foresee the Internet. But then, neither did the computer
industry. Not that that tells us very much of course - the computer
industry
didn't even foresee that the century was going to end." -- Douglas Adams

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (Darwin)

iD8DBQE9d4DTBIoCv9yTlOwRAm1zAJ9DyuMA3RlAFYZeJkulWYOFPPrFZwCdGIHx
pIvaA6utByxRaHKq58JdTso=
=jsvP
-----END PGP SIGNATURE-----

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Sep 07 2002 - 22:00:25 EST