Hi!

> My eth0 is configured by dhcp. If I ifup br0 to attach to eth0, and
> then ifdown br0, eth0 is taken down. Routes on eth0 obtained from dhcp
> are cleared, and connections are broken. Network is completely down
> unless manually configured again. I want to leave eth0 intact when br0
> detaches from it.

Well... I see some missunderstandings here, eth0 is what is attached to the
bridge and then detached, not the bridge the one that attaches to the
ethernet.

> Reading from the source, ifupdown.sh will shut down all attached ports
> unconditionally when the bridge is shutting down. So even I put
> post-down ip link set eth0 up in the br0 stanza, it won't recover the
> routes. There have to be some changes in the source to avoid
> unconditional takedown and make user able to configure it.

And this is ok.

Let me explain you how you are supposed to configure a bridge with an
attached ethernet (eth0) that will get it's IP address from DHCP...

iface ibr0 inet dhcp
        bridge_ports eth0

That's it.

This way you end up with bridge interface that has eth0 attached and gets
it's IP from dhcp.

Of course you can then tune it up like you want, but you don't need to add
any iface section for eth0 anywhere, typically you just add the bridge and
set IP and other stuff on that iface section.

If this doesn't have sense to you just let me know what is weird on your
setup and we'll try to work out something. Otherwise, please close the bug
or let me know so that I can close it.

Regards.
-- 
Manty/BestiaTester -> http://manty.net


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to