[pve-devel] seperated virtual networks for KVM instances

Stefan Priebe - Profihost AG s.priebe at profihost.ag
Fri Jan 25 15:40:54 CET 2013


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



More information about the pve-devel mailing list