[pve-devel] [PATCH] add bridge_vlan option to brige in /etc/network/interface

Michael Rasmussen mir at datanom.net
Thu Jan 2 11:59:43 CET 2014


On Thu, 2 Jan 2014 08:15:38 +0000
Dietmar Maurer <dietmar at proxmox.com> wrote:

> > +    if [ "$MODE" = "start" ] && [ -d /sys/class/net/$IFACE/brif/$port ]; then
> > +      #we allow vlan to pass through attached interface
> > +      if [ -n "$IF_BRIDGE_VLAN" ]
> > +      then
> > +	 case "$port" in
> > +	   eth*|bond*|wlan*)
> > +	     bridge vlan add dev $port vid $IF_BRIDGE_VLAN
> > +	   ;;
How is this working? I can find know one matching on my proxmox hosts.

cat /etc/network/interfaces
# network interface settings
auto lo
iface lo inet loopback

auto eth1
iface eth1 inet manual

auto eth2
iface eth2 inet manual

auto bond0
iface bond0 inet manual
	slaves eth1 eth2
	bond-miimon 100
	bond-mode 802.3ad
	bond-xmit-hash-policy layer3+4
	bond_lacp_rate fast

auto vmbr0
iface vmbr0 inet static
	address 192.168.2.8
	netmask 255.255.255.0
	bridge_ports bond0
	bridge_stp off
	bridge_fd 0

auto vmbr10
iface vmbr10 inet manual
	bridge_ports bond0.10
	bridge_stp off
	bridge_fd 0

auto vmbr20
iface vmbr20 inet static
	address  172.16.2.8
	netmask  255.255.255.0
	bridge_ports bond0.20
	bridge_stp off
	bridge_fd 0

auto vmbr30
iface vmbr30 inet static
	address  172.16.3.8
	netmask  255.255.255.0
	gateway  172.16.3.1
	bridge_ports bond0.30
	bridge_stp off
	bridge_fd 0

auto vmbr300
iface vmbr300 inet manual
	bridge_ports bond0.300
	bridge_stp off
	bridge_fd 0


-- 
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:
Joe's sister puts spaghetti in her shoes!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.proxmox.com/pipermail/pve-devel/attachments/20140102/d6ce30be/attachment.sig>


More information about the pve-devel mailing list