Hi Stefan, Thanks it's working ! (I have not aware of vlan-raw-device syntax).
Based of this, I have a better setup, putting ip addresse on vlan interface, and not on a bridge. So it's a small change. But I really think this change should not go in stable pve repo before a big release like proxmox 2.3. As It ll require reboot of the host to have clean bridges without mix of tagged interfaces and tagged bridges interfaces. old config ---------- auto vmbr0 iface vmbr0 inet static address 10.3.94.31 netmask 255.255.255.0 gateway 10.3.94.1 bridge_ports bond0.94 bridge_stp off bridge_fd 0 auto vmbr1 iface vmbr1 inet manual bridge_ports bond0 bridge_stp off bridge_fd 0 new config ----------- auto vmbr0 iface vmbr0 inet manual bridge_ports bond0 bridge_stp off bridge_fd 0 auto vmbr0.94 iface vmbr0.94 inet static vlan-raw-device vmbr0 address 10.3.94.31 netmask 255.255.255.0 gateway 10.3.94.1 auto vmbr1 iface vmbr1 inet manual bridge_ports bond0 bridge_stp off bridge_fd 0 ----- Mail original ----- De: "Stefan Priebe" <s.pri...@profihost.ag> À: "Alexandre DERUMIER" <aderum...@odiso.com> Cc: pve-devel@pve.proxmox.com Envoyé: Jeudi 7 Février 2013 21:20:54 Objet: Re: [pve-devel] new bridge code doesn't work with redhat kernel Hi Alexandre, as far as i understood the kernel people you should go this way (untested just written down): auto bond0 iface bond0 inet manual slaves eth0 eth1 bond_miimon 100 bond_mode active-backup pre-up ifup eth0 eth1 post-down ifdown eth0 eth1 auto vmbr1 iface vmbr1 inet manual bridge_ports bond0 bridge_stp off bridge_fd 0 auto vmbr1.94 iface vmbr1.94 inet manual vlan-raw-device vmbr1 auto vmbr1v94 iface vmbr1v94 inet manual bridge_ports vmbr1.94 bridge_stp off bridge_fd 0 Stefan Am 07.02.2013 18:33, schrieb Alexandre DERUMIER: > old config (bond0.94 is created automaticaly by debian script when adding it > to vmbr0) > ----------- > > auto bond0 > iface bond0 inet manual > slaves eth0 eth1 > bond_miimon 100 > bond_mode active-backup > pre-up ifup eth0 eth1 > post-down ifdown eth0 eth1 > > auto vmbr0 > iface vmbr0 inet static > address 10.3.94.31 > netmask 255.255.255.0 > gateway 10.3.94.1 > bridge_ports bond0.94 > bridge_stp off > bridge_fd 0 > > auto vmbr1 > iface vmbr1 inet manual > bridge_ports bond0 > bridge_stp off > bridge_fd 0 > > > > new config > ---------- > auto bond0 > iface bond0 inet manual > slaves eth0 eth1 > bond_miimon 100 > bond_mode active-backup > pre-up ifup eth0 eth1 > post-down ifdown eth0 eth1 > > > auto vmbr1 > iface vmbr1 inet manual > bridge_ports bond0 > bridge_stp off > bridge_fd 0 > > auto vmbr1v94 > iface vmbr1v94 inet static > address 10.3.94.31 > netmask 255.255.255.0 > gateway 10.3.94.1 > pre-up brctl addbr vmbr1v94 > pre-up ip link add link vmbr1 name vmbr1.94 type vlan id 94 > pre-up ip link set vmbr1.94 up > post-up brctl addif vmbr1v94 vmbr1.94 > > > > > guest vms are using vmbr1 as bridge > > > > ----- Mail original ----- > > De: "Stefan Priebe - Profihost AG" <s.pri...@profihost.ag> > À: "Alexandre DERUMIER" <aderum...@odiso.com> > Cc: pve-devel@pve.proxmox.com > Envoyé: Jeudi 7 Février 2013 18:09:04 > Objet: Re: [pve-devel] new bridge code doesn't work with redhat kernel > > Could you please post complete config for example bond0.94 is missing. > > Am 07.02.2013 um 17:51 schrieb Alexandre DERUMIER <aderum...@odiso.com>: > >> Ok, to get my setup work with /etc/network/interfaces, the only way is to >> use pre-up,post-up manually. >> >> >> old config >> ---------- >> auto vmbr0 >> iface vmbr0 inet static >> address 10.3.94.31 >> netmask 255.255.255.0 >> gateway 10.3.94.1 >> bridge_ports bond0.94 >> bridge_stp off >> bridge_fd 0 >> >> >> auto vmbr1 >> iface vmbr1 inet manual >> bridge_ports bond0 >> bridge_stp off >> bridge_fd 0 >> >> >> >> new config >> ----------- >> >> auto vmbr1v94 >> iface vmbr1v94 inet static >> address 10.3.94.31 >> netmask 255.255.255.0 >> gateway 10.3.94.1 >> pre-up brctl addbr vmbr1v94 >> pre-up ip link add link vmbr1 name vmbr1.94 type vlan id 94 >> pre-up ip link set vmbr1.94 up >> post-up brctl addif vmbr1v94 vmbr1.94 >> >> >> auto vmbr1 >> iface vmbr1 inet manual >> bridge_ports bond0 >> bridge_stp off >> bridge_fd 0 >> >> >> >> not easy for common user ;) >> >> ----- Mail original ----- >> >> De: "Alexandre DERUMIER" <aderum...@odiso.com> >> À: "Stefan Priebe - Profihost AG" <s.pri...@profihost.ag> >> Cc: pve-devel@pve.proxmox.com >> Envoyé: Jeudi 7 Février 2013 16:43:23 >> Objet: Re: [pve-devel] new bridge code doesn't work with redhat kernel >> >> to get my host admin network working I need to put >> --------------------------------------------------- >> auto vmbr1 >> iface vmbr1 inet manual >> bridge_ports bond0 >> bridge_stp off >> bridge_fd 0 >> >> >> auto vmbr1v94 >> iface vmbr1v94 inet static >> address 10.3.94.31 >> netmask 255.255.255.0 >> gateway 10.3.94.1 >> bridge_ports vmbr1.94 >> bridge_stp off >> bridge_fd 0 >> >> (brige_ports not work, but bridge is created) >> >> then >> >> ip link add link vmbr1 name vmbr1.94 type vlan id 94 >> ip link set vmbr1.94 up >> brctl addif vmbr1v94 vmbr1.94 >> >> >> >> So this give me this working setup >> ---------------------------------- >> bond0----vmbr1---vmbr1.94---vmbr1v94 >> ----vmbr1---vmbr1.X----vmbr1vX---tap qemu >> >> >> What is not working is >> ---------------------- >> bond0---bond0.94---vmbr0 >> ---vmbr1---vmbr1.X----vmbr1vX---tap qemu >> >> >> >> Any idea if an updated debian network script exist in wheezy ? >> >> >> >> >> ----- Mail original ----- >> >> De: "Alexandre DERUMIER" <aderum...@odiso.com> >> À: "Stefan Priebe - Profihost AG" <s.pri...@profihost.ag> >> Cc: pve-devel@pve.proxmox.com >> Envoyé: Jeudi 7 Février 2013 16:27:19 >> Objet: Re: [pve-devel] new bridge code doesn't work with redhat kernel >> >> Ok, I have done more test, It seem that the problem in my setup is my tagged >> interface in other bridge >> >> >> don't work >> ----------- >> auto vmbr0 >> iface vmbr0 inet static >> address 10.3.94.31 >> netmask 255.255.255.0 >> gateway 10.3.94.1 >> bridge_ports bond0.94 >> bridge_stp off >> bridge_fd 0 >> >> auto vmbr1 >> iface vmbr1 inet manual >> bridge_ports bond0 >> bridge_stp off >> bridge_fd 0 >> >> >> # brctl show >> bridge name bridge id STP enabled interfaces >> vmbr0 8000.001aa03c98c5 no bond0.94 >> vmbr1 8000.001aa03c98c5 no bond0 >> vmbr1v95 8000.001aa03c98c5 no tap115i0 >> vmbr1.95 >> >> works (remove vmbr0) >> ----- >> # brctl show >> bridge name bridge id STP enabled interfaces >> vmbr1 8000.001aa03c98c5 no bond0 >> vmbr1v95 8000.001aa03c98c5 no tap115i0 >> vmbr1.95 >> >> >> So we can't mix tagged interfaces and tagged bridges. >> (must be a bug in kernel, as it's work fine with new kernels) >> >> >> >> Any idea how to enslave a vmbr1.X with ip address in /etc/network/interfaces >> ? >> >> I had tried >> >> auto vmbr1 >> iface vmbr1 inet manual >> bridge_ports bond0 >> bridge_stp off >> bridge_fd 0 >> >> auto vmbr1v94 >> iface vmbr1v94 inet static >> address 10.3.94.31 >> netmask 255.255.255.0 >> gateway 10.3.94.1 >> bridge_ports vmbr1.94 >> bridge_stp off >> bridge_fd 0 >> >> But It give me >> >> Ignoring unknown interface vmbr1.94=vmbr1.94. >> >> >> >> >> Also, I think I'm not the only to use this kind of setup, so proxmox users >> should be warned before doing the update. >> >> >> >> ----- Mail original ----- >> >> De: "Stefan Priebe - Profihost AG" <s.pri...@profihost.ag> >> À: "Alexandre DERUMIER" <aderum...@odiso.com> >> Cc: pve-devel@pve.proxmox.com >> Envoyé: Jeudi 7 Février 2013 15:59:45 >> Objet: Re: [pve-devel] new bridge code doesn't work with redhat kernel >> >> Hi Alexandre, >> >>> Does it work for you (vlan on bridge) with redhat kernel ? >> Yes i retested my code with latest PVE Kernel and it works absolutely >> FINE. I can ping all VMs. >> >> Stefan >> >>> also, I my setup, I have vmbr0 bridge with interface tagged for host >>> administration >> >> I believe this is the problem. You should have a BOND and on top of that >> bond one single bridge and on top of that bridge you should create the >> VLAN and not on top of the bond. >> >> Stefan >> _______________________________________________ >> pve-devel mailing list >> pve-devel@pve.proxmox.com >> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel >> _______________________________________________ >> pve-devel mailing list >> pve-devel@pve.proxmox.com >> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel