Proxmox VLAN aware

dvjstefan

Member
Oct 3, 2020
7
0
6
45
Hi,

I have been struggling with this for a few months now - but now it's time to give up.

Impossible to get other vlans than 1 to work for my VMs

1613687905514.png

I have created an bond0 trunk and then use it with vmbr0.

Checked vmbr0 vlan aware and installed the VM with tag=10. I do not get any ip from the DHCP and if i use static - it dosen't work either. When I use an LXC container - there works VLAN10.

how should i do it?

//Stefan
 
Config is correct, supposed your switch supports lacp.

Just to be sure, you have a gateway with dhcp in the other vlans ?

Post vm config, switch config and nic details.

Some nic have trouble with vlan over bond, you can try without the bond to verify.
 
Last edited:
Switch support LACP (SG350X-24F)

Note. VLAN works perfect on proxhost02 (I have two different NICs in that machine. One 1gbit for MGMT and one 10gbit dual for VMs)

Switch config (Port-Channel 1 & 2);

switch022#show running-config i po1
interface Port-Channel1
flowcontrol auto
description proxhost01
bridge multicast unregistered filtering
switchport mode trunk
!
switch022#show running-config i po2
interface Port-Channel2
flowcontrol auto
description proxhost02
bridge multicast unregistered filtering
switchport mode trunk
!


Proxhost01 - NIC config:

auto lo
iface lo inet loopback

auto eno1
iface eno1 inet manual
mtu 9000

auto eno2
iface eno2 inet manual
mtu 9000

auto bond0
iface bond0 inet manual
bond-slaves eno1 eno2
bond-miimon 100
bond-mode 802.3ad
bond-xmit-hash-policy layer2+3
mtu 9000

auto vmbr0
iface vmbr0 inet static
address 192.168.0.200/24
gateway 192.168.0.1
bridge-ports bond0
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094
mtu 9000

auto vmbr0.10
iface vmbr0.10 inet manual




Proxhost02 - NIC config:
auto lo
iface lo inet loopback

iface enp7s0f0 inet manual

iface enp7s0f1 inet manual

iface enp7s0f2 inet manual

auto enp4s0f0
iface enp4s0f0 inet manual
mtu 9000

iface enp7s0f3 inet manual

auto enp4s0f1
iface enp4s0f1 inet manual
mtu 9000

auto bond0
iface bond0 inet manual
bond-slaves enp4s0f0 enp4s0f1
bond-miimon 100
bond-mode 802.3ad
bond-xmit-hash-policy layer2+3
mtu 9000

auto vmbr0
iface vmbr0 inet static
address 192.168.0.201/24
gateway 192.168.0.1
bridge-ports enp7s0f0
bridge-stp off
bridge-fd 0

auto vmbr1
iface vmbr1 inet manual
bridge-ports bond0
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094
mtu 9000



When i migrate the VM from host01 to host02 - my VLAN configure works direct.

LABB02 NIC config @proxhost01

Network Device (net0) e1000=MACADDRESS,bridge=vmbr0,tag=10

LABB02 NIC config @proxhost02 (when it's migrated from host01)

Network Device (net0) e1000=MACADDRESS,bridge=vmbr1,tag=10
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!