Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #176331
| From | Reco <recoverym4n@gmail.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: hotpluggable member of a bridge |
| Date | 2017-01-05 17:10 +0100 |
| Message-ID | <sWiM1-5ja-1@gated-at.bofh.it> (permalink) |
| References | <sW74d-5AZ-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi. On Wed, 04 Jan 2017 22:34:16 -0500 Stefan Monnier <monnier@iro.umontreal.ca> wrote: > I have a bridge interface `br0` which usually contains jut `eth0` but > occasionally also needs to contain `usb0`, which is an ethernet-dongle > kind of thing. > > How do I setup /etc/network/interfaces for that? > > Currently, I just setup everything "manually": `br0` is setup `static`, > and `usb0` is setup as `manual` with post-up scripts that add it to > the bridge. > > Is there something better? Like a predefined way to just say that when > `usb0` appears, it should be added to `br0` (and ideally, this would > also `ifup` the `br0` interface if it's not up yet). Conventional Linux bridge cannot do that. All those interfaces(5) stanzas are merely a wrapper to 'brctl addbr' and 'brctl addif', which are invoked by ifupdown. But, it all changes if you replace conventional bridge with openvswitch, which *can* add new interfaces (ports as they call it) to its own bridges dynamically *and* it can be configured via interfaces(5). A sample configuration would be: allow-ovs br0 iface br0 inet4 static address … netmask … ovs_type OVSBridge allow-br0 eth0 iface eth0 inet6 auto ovs_type OVSPort ovs_bridge br0 allow-hotplug usb0 iface usb0 inet6 auto ovs_type OVSPort ovs_bridge br0 Reco
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
hotpluggable member of a bridge Stefan Monnier <monnier@iro.umontreal.ca> - 2017-01-05 04:40 +0100
Re: hotpluggable member of a bridge Nicolas George <george@nsup.org> - 2017-01-05 10:10 +0100
Re: hotpluggable member of a bridge <tomas@tuxteam.de> - 2017-01-05 10:30 +0100
Re: hotpluggable member of a bridge Michael Biebl <biebl@debian.org> - 2017-01-05 16:30 +0100
Re: hotpluggable member of a bridge Sven Hartge <sven@svenhartge.de> - 2017-01-06 03:00 +0100
Re: hotpluggable member of a bridge <tomas@tuxteam.de> - 2017-01-06 09:40 +0100
Re: hotpluggable member of a bridge Stefan Monnier <monnier@iro.umontreal.ca> - 2017-01-05 16:30 +0100
Re: hotpluggable member of a bridge Nicolas George <george@nsup.org> - 2017-01-05 16:40 +0100
Re: hotpluggable member of a bridge Stefan Monnier <monnier@IRO.UMontreal.CA> - 2017-01-05 18:30 +0100
Re: Congratulations Danielle , Your Roof is Covered - FREE!GYfb Danielle Gregory <danielle.k.gregory@gmail.com> - 2017-01-05 22:10 +0100
Re: Congratulations Aileen , Your Roof is Covered - FREE!PHYi tazzygirl tazzygirl <saratazmtz77@gmail.com> - 2017-01-05 22:10 +0100
RE: Congratulations Emmanuel , Your Roof is Covered - FREE!44OO Jennyetta Washington <manolofimbres@gmail.com> - 2017-01-05 22:20 +0100
Re: hotpluggable member of a bridge Reco <recoverym4n@gmail.com> - 2017-01-05 17:10 +0100
Re: hotpluggable member of a bridge Joshua Schaeffer <jschaeffer0922@gmail.com> - 2017-01-05 17:20 +0100
Re: hotpluggable member of a bridge Reco <recoverym4n@gmail.com> - 2017-01-05 17:40 +0100
Re: hotpluggable member of a bridge Joshua Schaeffer <jschaeffer0922@gmail.com> - 2017-01-05 18:10 +0100
Re: hotpluggable member of a bridge Pascal Hambourg <pascal@plouf.fr.eu.org> - 2017-01-05 22:20 +0100
Re: hotpluggable member of a bridge Pascal Hambourg <pascal@plouf.fr.eu.org> - 2017-01-05 22:30 +0100
Re: hotpluggable member of a bridge Reco <recoverym4n@gmail.com> - 2017-01-05 22:40 +0100
Re: hotpluggable member of a bridge Pascal Hambourg <pascal@plouf.fr.eu.org> - 2017-01-08 16:50 +0100
Re: hotpluggable member of a bridge Reco <recoverym4n@gmail.com> - 2017-01-08 17:20 +0100
Re: hotpluggable member of a bridge Pascal Hambourg <pascal@plouf.fr.eu.org> - 2017-01-08 18:00 +0100
Re: hotpluggable member of a bridge Stefan Monnier <monnier@iro.umontreal.ca> - 2017-01-06 02:20 +0100
Re: hotpluggable member of a bridge Reco <recoverym4n@gmail.com> - 2017-01-06 12:40 +0100
Re: hotpluggable member of a bridge Reco <recoverym4n@gmail.com> - 2017-01-06 13:20 +0100
Re: hotpluggable member of a bridge Pascal Hambourg <pascal@plouf.fr.eu.org> - 2017-01-08 17:00 +0100
Re: hotpluggable member of a bridge Reco <recoverym4n@gmail.com> - 2017-01-08 17:20 +0100
Re: hotpluggable member of a bridge Reco <recoverym4n@gmail.com> - 2017-01-08 17:30 +0100
Re: hotpluggable member of a bridge Pascal Hambourg <pascal@plouf.fr.eu.org> - 2017-01-08 17:30 +0100
Re: hotpluggable member of a bridge Stefan Monnier <monnier@iro.umontreal.ca> - 2017-01-06 22:50 +0100
Re: hotpluggable member of a bridge Jonathan Dowland <jmtd@debian.org> - 2017-01-06 18:20 +0100
csiph-web