netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Victor Mataré" <matare@lih.rwth-aachen.de>
To: David Miller <davem@davemloft.net>
Cc: akpm@linux-foundation.org, netdev@vger.kernel.org,
	bugzilla-daemon@bugzilla.kernel.org,
	bugme-daemon@bugzilla.kernel.org
Subject: Re: [Bugme-new] [Bug 35862] New: arp requests from wrong src IP
Date: Thu, 26 May 2011 04:00:22 +0200	[thread overview]
Message-ID: <201105260400.22814.matare@lih.rwth-aachen.de> (raw)
In-Reply-To: <20110525.215222.22117057747103565.davem@davemloft.net>

On Thursday, 26.05.2011 03:52:22 David Miller wrote:
> From: Andrew Morton <akpm@linux-foundation.org>
> Date: Wed, 25 May 2011 16:31:37 -0700
> 
> >> I switched a host's ip address from 137.226.164.13 to 137.226.164.2. The .13 IP
> >> now belongs to the host that had .2 before (I swapped them). Now both hosts
> >> still arp from their old IPs although ifconfig as well as ip clearly tell
> >> otherwise. Examining the host which now has 137.226.164.13:
> >> 
> >> # ip addr show dev eth0
> >> 4: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
> >>     link/ether 00:e0:81:41:1f:e4 brd ff:ff:ff:ff:ff:ff
> >>     inet 137.226.164.2/24 brd 137.226.164.255 scope global eth0
> >>     inet 192.168.23.2/24 brd 137.226.164.255 scope global eth0:0
> 
> If you keep the old IP address around it remains as the "primary"
> IP address.
> 
> You have to explicitly remove the original IP address from the
> interface first, then add the new one, in order for the new
> one to become the "primary"
> 
> Not a bug, please close this.
> 

Sorry, there's a typo. It's supposed to read:

[...]
Examining the host which now has 137.226.164.2 (used to have 137.226.164.13):

# ip addr show dev eth0
4: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
     link/ether 00:e0:81:41:1f:e4 brd ff:ff:ff:ff:ff:ff
     inet 137.226.164.2/24 brd 137.226.164.255 scope global eth0
     inet 192.168.23.2/24 brd 137.226.164.255 scope global eth0:0
[...]

Sorry, got confused with all the swapping. I'm *not* keeping the old address around, it's completely *gone*, from both ifconfig and ip. But still it's being used as arp src address. That's what this bug is about. Sorry for the confusion.

  reply	other threads:[~2011-05-26  2:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-35862-10286@https.bugzilla.kernel.org/>
2011-05-25 23:31 ` [Bugme-new] [Bug 35862] New: arp requests from wrong src IP Andrew Morton
2011-05-26  1:52   ` David Miller
2011-05-26  2:00     ` Victor Mataré [this message]
2011-05-27  5:27       ` Julian Anastasov
2011-05-27 23:58         ` Victor Mataré
2011-05-28 19:10           ` Julian Anastasov

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=201105260400.22814.matare@lih.rwth-aachen.de \
    --to=matare@lih.rwth-aachen.de \
    --cc=akpm@linux-foundation.org \
    --cc=bugme-daemon@bugzilla.kernel.org \
    --cc=bugzilla-daemon@bugzilla.kernel.org \
    --cc=davem@davemloft.net \
    --cc=netdev@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;
as well as URLs for NNTP newsgroup(s).