From: Dan Stromberg <dstromberglists@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: ifconfig changing a routing table?
Date: Fri, 31 Aug 2007 03:55:53 +0000 (UTC) [thread overview]
Message-ID: <fb83g8$nac$1@sea.gmane.org> (raw)
If I "ifconfig eth1 down", a rogue route disappears.
If I "ifconfig eth1 up" or "ip link set dev eth1 up", the rogue route
comes back.
The route in question is for 10.3/16, and it's breaking some of my
communications that should be handled by my default route.
I'm not accustomed to ifconfig changing the routing table. Is this
normal?
The kernel in question is 2.6.9-42.0.8.plus.c4smp. It's a CentOSplus
kernel.
The relevant syscalls in an strace of the above ip link command (which a
very short strace, BTW) appear to be:
9992 socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
9992 ioctl(3, SIOCGIFFLAGS, {ifr_name="eth1", ifr_flags=IFF_BROADCAST|
IFF_MULTICAST}) = 0
9992 ioctl(3, SIOCSIFFLAGS, 0x7fbffff510) = 0
9992 close(3) = 0
The strace of ifconfig eth1 up is pretty similar, albeit with a slightly
different 3rd argument to the SIOCSIFFLAGS.
I tracked the call chain to dev_change_flags(), but then things seemed to
start branching out pretty fast, so I thought it might be more productive
to ask around before continuing.
Is anyone on the list familiar with ifconfig up and/or ip link up
changing a routing table? How does the kernel decide what route to add
in such a circumstance?
Thanks!
next reply other threads:[~2007-08-31 4:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-31 3:55 Dan Stromberg [this message]
2007-08-31 4:41 ` ifconfig changing a routing table? David Miller
2007-09-01 16:33 ` Ross Vandegrift
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='fb83g8$nac$1@sea.gmane.org' \
--to=dstromberglists@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.