[PVE-User] VLAN between LXC containers on differents proxmox 4
Guillaume
proxmox at shadowprojects.org
Thu Apr 6 17:31:22 CEST 2017
Le 05/04/2017 à 12:34, Alessandro Briosi a écrit :
> Il 05/04/2017 12:07, Guillaume ha scritto:
>> Le 05/04/2017 à 11:49, Alessandro Briosi a écrit :
>>> Il 05/04/2017 11:19, Guillaume ha scritto:
>>>> Le 05/04/2017 à 11:01, Guillaume a écrit :
>>>>> Le 04/04/2017 à 23:28, Michael Rasmussen a écrit :
>>>>>> On Tue, 4 Apr 2017 22:48:54 +0200
>>>>>> Guillaume <proxmox at shadowprojects.org> wrote:
>>>>>>
>>>>>>> The vrack system already took care of that, that's why i didn't
>>>>>>> speak about that part at all on my initial email.
>>>>>>>
>>>>>> Ok. The next thing is that I do not think it is possible to configure
>>>>>> vlans inside of a LXC you need to configure the bridge on the proxmox
>>>>>> node to handle the vlan stuff.
>>>>>>
>>>>>> This is a working example from my installation:
>>>>>> Proxmox:
>>>>>> auto vmbr1000
>>>>>> iface vmbr1000 inet manual
>>>>>> bridge_ports bond0.1000
>>>>>> bridge_stp off
>>>>>> bridge_fd 0
>>>>>>
>>>>>> LXC:
>>>>>> net0:
>>>>>> name=eth0,bridge=vmbr1000,hwaddr=3A:66:32:39:38:65,ip=dhcp,type=veth
>>>>>>
>>>>> You can configure vlan inside lxc since i did it (using the web
>>>>> interface or interfaces file), but i am indeed missing a bridge in
>>>>> the same vlan on proxmox side.
>>>> Of course, if i follow your advice and do it on proxmox side, there is
>>>> no need to do it on the container side.
>>> I think it's simply a matter of setting the VLAN tag in the eth
>>> configuration on the Proxmox GUI.
>> With Proxmox GUI, you can only assign vlan tag on lxc interfaces, not
>> on proxmox network.
>> And doing it only on lxc side (assigned to a proxmox bridge vlan
>> aware) doesn't work.
>>
>> I am not using bonding so I can't use Michael's working example out of
>> the box.
> It you need proxmox to use that VLAN on the bridge and then assign that
> bridge to the LXC containers, then you'd need to create a bridge which
> uses a VLAN configured ethX.Y/bondX.Y for the VLAN (like you did). Dunno
> if "bridge_vlan_aware yes" is correct in this case.
>
> If you simply need the LXC to be part of the VLAN then Assign the Tag.
>
> So basically here you have 2 possible solutions:
>
> 1. make the bridge vlan aware (bridge_vlan_aware yes) and simply tag the
> LXC ethernets associated with the bridge (vmbr210 with bridge_ports eth1)
>
> 2. make the bridge inside a vlan (bridge_ports eth1.10) and simply
> assign that bridge to the LXC containers.
>
> 1 works for me (no on OVH though) and Michael says 2 is also working so
> there must be something in your configuration or OVH vrack which
> prevents it from working.
OVH is looking at it with some test servers they are installing.
>
> Alessandro
>
>
>
>
>
>
>
> _______________________________________________
> pve-user mailing list
> pve-user at pve.proxmox.com
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
More information about the pve-user
mailing list