[pve-devel] new bridge code doesn't work with redhat kernel

Stefan Priebe - Profihost AG s.priebe at profihost.ag
Thu Feb 7 18:09:04 CET 2013


Could you please post complete config for example bond0.94 is missing.

Am 07.02.2013 um 17:51 schrieb Alexandre DERUMIER <aderumier at 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" <aderumier at odiso.com> 
> À: "Stefan Priebe - Profihost AG" <s.priebe at profihost.ag> 
> Cc: pve-devel at 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" <aderumier at odiso.com> 
> À: "Stefan Priebe - Profihost AG" <s.priebe at profihost.ag> 
> Cc: pve-devel at 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.priebe at profihost.ag> 
> À: "Alexandre DERUMIER" <aderumier at odiso.com> 
> Cc: pve-devel at 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 at pve.proxmox.com 
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 
> _______________________________________________ 
> pve-devel mailing list 
> pve-devel at pve.proxmox.com 
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 



More information about the pve-devel mailing list