Package: bridge-utils
Version: 1.5-6
Severity: wishlist

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.

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.

I'd love to submit a patch for this, but I don't quite understand the
intent before changing it. The man page says "You should not put any
lines to configure the interfaces that will be used by the bridge, as
this will be setup automatically by the scripts when bringing the
bridge up." Maybe it means these ports are kind of "managed"? So will
it good if I create an option like bridge_manualports to specify ports
not to be managed?


Lingzhu Xiang


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to