On Thu, 2 Jan 2014 08:15:38 +0000
Dietmar Maurer <[email protected]> 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!

Attachment: signature.asc
Description: PGP signature

_______________________________________________
pve-devel mailing list
[email protected]
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to