public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Chris Friesen <cfriesen@nortelnetworks.com>
To: Andrew Ryan <genanr@emsphone.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: ARP and alias IPs
Date: Thu, 05 Sep 2002 12:24:07 -0400	[thread overview]
Message-ID: <3D778527.86F10C10@nortelnetworks.com> (raw)
In-Reply-To: 20020905150949.GA8112@thumper2.emsphone.com

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   10.1.1.100
> eth0:1 192.16.1.101
> 
> and an ARP is received on 192.16.1.101, linux responds with
> 10.1.1.100 as the source address in the ARP request, rather than 192.16.1.101
> (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. 47.129.82.232 is configured as eth0:0, with 47.129.82.53 being eth0,
and pcary1ja maps to 47.129.82.54.


08:04:59.650707 eth0 > 0:0:0:0:0:0 0:30:65:a0:ff:c6 arp 42: arp who-has 47.129.82.232 tell pcary1ja
(0:30:65:a0:ff:c6)
                         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 47.129.82.232 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
                         9051

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

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.

Chris

      parent reply	other threads:[~2002-09-05 16:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-05 15:09 ARP and alias IPs Andrew Ryan
2002-09-05 15:34 ` Alex Riesen
2002-09-05 16:05   ` Remco Post
2002-09-05 16:24 ` Chris Friesen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3D778527.86F10C10@nortelnetworks.com \
    --to=cfriesen@nortelnetworks.com \
    --cc=genanr@emsphone.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox