From: Patrick McHardy <kaber@trash.net>
To: Ben Greear <greearb@candelatech.com>
Cc: Stephen Hemminger <shemminger@linux-foundation.org>,
NetDev <netdev@vger.kernel.org>
Subject: Re: Routing tables associated with VLANs dissappear when parent ethX down/up
Date: Wed, 21 Nov 2007 22:12:55 +0100 [thread overview]
Message-ID: <47449F57.7080500@trash.net> (raw)
In-Reply-To: <47449AE9.5020301@candelatech.com>
Ben Greear wrote:
> Patrick McHardy wrote:
>> Stephen Hemminger wrote:
>>>
>>> But then if you are doing bonding or bridging of vlan's and you
>>> bring down the root network device, the upper layer is not
>>> notified (for failover).
>>>
>>
>> operstate should be enough for this I guess. Ben, what does iproute show
>> for the vlan device when the lower device is down?
>
> It looks like it knows, assuming M-DOWN is useful information.
> Eth2 is un-plugged, by the way.
>
> [root@lanforge-33-46 ~]# ifconfig eth2 up
> [root@lanforge-33-46 ~]# ip link show eth2.2
> 125: eth2.2@eth2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc
> noqueue
> link/ether 00:03:2d:08:33:47 brd ff:ff:ff:ff:ff:ff
> [root@lanforge-33-46 ~]# ifconfig eth2 down
> [root@lanforge-33-46 ~]# ip link show eth2.2
> 125: eth2.2@eth2: <NO-CARRIER,BROADCAST,MULTICAST,UP,M-DOWN> mtu 1500
> qdisc noqueue
> link/ether 00:03:2d:08:33:47 brd ff:ff:ff:ff:ff:ff
> [root@lanforge-33-46 ~]#
That comes from iproute itself, but the missing LOWER-UP flag
indicates it and that should be enough for bridging and bonding.
I'm unsure about this though since its still a big difference in
userspace visible behaviour, people might just as well manually
configure failover once routing disappears or the device goes down,
or just have routing fall through to different routes. All this
wouldn't work anymore.
Maybe we can make this optional somehow without too much uglyness?
next prev parent reply other threads:[~2007-11-21 21:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-21 1:20 Routing tables associated with VLANs dissappear when parent ethX down/up Ben Greear
2007-11-21 19:51 ` Ben Greear
2007-11-21 20:00 ` Stephen Hemminger
2007-11-21 20:25 ` Patrick McHardy
2007-11-21 20:54 ` Ben Greear
2007-11-21 21:12 ` Patrick McHardy [this message]
2007-11-21 21:52 ` Ben Greear
2007-11-21 22:24 ` Patrick McHardy
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=47449F57.7080500@trash.net \
--to=kaber@trash.net \
--cc=greearb@candelatech.com \
--cc=netdev@vger.kernel.org \
--cc=shemminger@linux-foundation.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).