[pve-devel] seperated virtual networks for KVM instances

Alexandre DERUMIER aderumier at odiso.com
Fri Jan 25 16:23:13 CET 2013


>>I don't understand why proxmox creates a new bridge and uses the raw 
>>device for the vlan instead of the bridge. 

I think it was buggy last time we try it with the redhat kernel.
Their was a lot of rework in the kernel side around 2.6.39, and a lot of things were breaked at this time.


----- Mail original ----- 

De: "Stefan Priebe - Profihost AG" <s.priebe at profihost.ag> 
À: "Dietmar Maurer" <dietmar at proxmox.com> 
Cc: pve-devel at pve.proxmox.com 
Envoyé: Vendredi 25 Janvier 2013 15:40:54 
Objet: Re: [pve-devel] seperated virtual networks for KVM instances 

Hi Dietmar, 

Am 25.01.2013 09:24, schrieb Dietmar Maurer: 
>> If i look at this patch: 
>> 
>> 
>> http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=patch;h=683a21 
>> b0 
>> 
>> It seems the debian vlan package using vconfig can't handle these flags as it 
>> simply does not support them. (latest version 2007). 
>> 
>> There are some more actual configuration variants: 
>> #vlan1_flags="reorder_hdr off gvrp on loose_binding on" 
>> 
>> So which script in proxmox creates the vlan? 
> 
> https://git.proxmox.com/?p=qemu-server.git;a=blob;f=pve-bridge;h=8e50112c5a55b33bcca1f88adb703a438ffd60c8;hb=HEAD 

Thanks - i've ported the script from vconfig to iproute2 using the ip 
command. This works fine. 

But why do we use the iterface of the bridge to create th vlan from? In 
this case GVRP does not work. It works fine if i use the bridge itself. 

Proxmox default way ported to /sbin/ip: 
------------------------------------------------------ 
/sbin/ip link add link eth1 name eth1.99 type vlan id 99 reorder_hdr on 
gvrp on 
/sbin/ip link set eth1.99 up 
/usr/sbin/brctl addbr vmbr1v99 
/sbin/ip link set vmbr1v99 up 
/usr/sbin/brctl addif vmbr1v99 eth1.99 
------------------------------------------------------ 

gvrp does NOT work. 


This one works fine instead. 

------------------------------------------------------ 
/sbin/ip link add link vmbr1 name vmbr1.99 type vlan id 99 reorder_hdr 
on gvrp on 
/sbin/ip link set vmbr1.99 up 
------------------------------------------------------ 

I don't understand why proxmox creates a new bridge and uses the raw 
device for the vlan instead of the bridge. 

Greets, 
Stefan 
_______________________________________________ 
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