On Tue, 25 Mar 2014 08:12:14 +0100
ard <[email protected]> wrote:

> 
> Hmmm, actually I am a little bit surprised that the mere
> mentioning of eth1.20 in the bridge configuration automagically
> creates eth1.20.
> 
> I would suspect that the first 2 lines should be:
> 
> auto eth1.20
> iface eth1.20 inet manual
> 
> As that would create an eth1.20 in the up state. Actually, that's
> how I do it ;-).
> 
> On the other hand, the bridges should either not get created at
> all, or created without ports, or somewhere in between.
> If it attaches eth1 instead of nothing at all, that would be a
> grave bug.
> 
From vlan-interfaces(5):
vlan-raw-device devicename
Indicates the device to create the vlan on.  This is ignored when the
devicename is part of the vlan interface name.

From bridge-utils-interfaces(5):
bridge_ports interface specification
this option must exist for the scripts to setup the bridge, with it you
specify the ports  you  want  to  add  to your bridge, either using
"none" if you want a bridge without any interfaces or you want to add
them later using brctl, or a list of  the interfaces you want to add
separated by spaces, for example: bridge_ports eth0 eth4 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.

If you need to specify the interfaces more flexibly, you can use the
following syn‐ tax (most useful on a Xen  dom0): bridge_ports regex
(eth|vif).* This means to evaluate (as in egrep(1)) the expressions
that follow  after  "regex" until  either the end or a "noregex"
statement is reached.  The regular expressions are evaluated against
all local interfaces and those that match are added.

Specifying "all" is short for "regex eth.* em.* p[0-9].* noregex" and
will get  all the ethX and biosdevname-format (emX and pX) interfaces
added to the bridge.

-- 
Hilsen/Regards
Michael Rasmussen

Get my public GnuPG keys:
michael <at> rasmussen <dot> cc
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xD3C9A00E
mir <at> datanom <dot> net
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE501F51C
mir <at> miras <dot> org
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE3E80917
--------------------------------------------------------------
/usr/games/fortune -es says:
If I were to walk on water, the press would say I'm only doing it
because I can't swim.
                -- Bob Stanfield

Attachment: signature.asc
Description: PGP signature

Reply via email to