netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Benoit PAPILLAULT <benoit.papillault@free.fr>
To: netdev@vger.kernel.org
Subject: ip monitor bug
Date: Sat, 15 Sep 2007 18:02:06 +0200	[thread overview]
Message-ID: <46EC01FE.1050405@free.fr> (raw)

Hi there,

I'd like to get feedbacks on the following scenario and whether it's a 
bug or not. Moreover, i'd like to know how to make a route permanent (ie 
never removed by the kernel).

# configure eth0 with IP 1.1.1.1
ifconfig eth0 1.1.1.1 up

# show routes added by the kernel (expected results)
ip route show dev eth0
1.0.0.0/8  proto kernel  scope link  src 1.1.1.1

# start ip monitor in background
ip monitor &

# add a specific route, properly reported by ip monitor (second line)
ip route add 192.168.168.168/32 dev eth0
192.168.168.168 dev eth0  scope link

# change eth0 IP address to 2.2.2.2
ifconfig eth0 2.2.2.2 up
Deleted 2: eth0    inet 1.1.1.1/8 brd 1.255.255.255 scope global eth0
Deleted 1.0.0.0/8 dev eth0  proto kernel  scope link  src 1.1.1.1
Deleted broadcast 1.255.255.255 dev eth0  table 255  proto kernel  scope 
link  src 1.1.1.1
Deleted broadcast 1.0.0.0 dev eth0  table 255  proto kernel  scope link  
src 1.1.1.1
Deleted local 1.1.1.1 dev eth0  table 255  proto kernel  scope host  src 
1.1.1.1
2: eth0    inet 2.2.2.2/8 brd 2.255.255.255 scope global eth0
local 2.2.2.2 dev eth0  table 255  proto kernel  scope host  src 2.2.2.2
broadcast 2.255.255.255 dev eth0  table 255  proto kernel  scope link  
src 2.2.2.2
2.0.0.0/8 dev eth0  proto kernel  scope link  src 2.2.2.2
broadcast 2.0.0.0 dev eth0  table 255  proto kernel  scope link  src 
2.2.2.2

# display routing table on eth0
ip route show dev eth0
2.0.0.0/8  proto kernel  scope link  src 2.2.2.2

So, the specific route (192.168.168.168/32) has been removed and ip 
monitor does not report it! I consider it to be a bug. I've been digging 
a bit into the kernel source code (devinet.c, fib_frontend.c) without 
much success.

Moreover, is there a way that the specific route (192.168.168.168/32) be 
keept even if eth0 IP changed?


Best regards,
Benoit
PS: Don't tell me about IP range, netmask and such, i've been using /32 
route for a while with IP in different ranges.


                 reply	other threads:[~2007-09-15 16:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=46EC01FE.1050405@free.fr \
    --to=benoit.papillault@free.fr \
    --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).