[lkml]   [2002]   [Sep]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: ARP and alias IPs
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.
> For example
> eth0
> eth0:1
> and an ARP is received on, linux responds with
> as the source address in the ARP request, rather than
> (which FreeBSD, Solaris, and tru64 do). To me, this is just plain wrong.
> The sender address should be an address on the subnet that the request came
> from, not a different one. Is there any way to fix this?

I'm not sure how you're managing to get that behaviour. I just reproduced the scenario on a 2.2.17
kernel and logged the output. is configured as eth0:0, with being eth0,
and pcary1ja maps to

08:04:59.650707 eth0 > 0:0:0:0:0:0 0:30:65:a0:ff:c6 arp 42: arp who-has tell pcary1ja
0001 0800 0604 0001 0030 65a0 ffc6 2f81
5236 0000 0000 0000 2f81 52e8
08:04:59.650707 eth0 < 0:30:65:c0:23:c4 0:0:0:0:0:1 arp 64: arp reply is-at
0:30:65:c0:23:c4 (0:30:65:a0:ff:c6)
0001 0800 0604 0002 0030 65c0 23c4 2f81
52e8 0030 65a0 ffc6 2f81 5236 5555 5555
5555 5555 5555 5555 5555 5555 5555 e796

As you can see, the reply is properly sent out with the source IP address of

Are you sure you aren't misreading something? If you change the source IP address then the arp
reply is totally useless as it is a reply to another request entirely.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:28    [W:0.036 / U:0.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site