Need help with VLAN config...

Dec 19, 2012
509
16
83
Hi.
I tried to use VLANs & Subnetting with Proxmox 4.2. I found this manual in the wiki:
https://pve.proxmox.com/wiki/Vlans
... and tried to follow it.

My /etc/network/interfaces looks like this:

Code:
auto lo
iface lo inet loopback
# Realtek r8169
iface eth0 inet manual

#bond0
iface eth1 inet manual
iface eth2 inet manual
iface eth3 inet manual
iface eth4 inet manual

auto bond0
iface bond0 inet manual
        slaves eth1 eth2 eth3 eth4
        bond_miimon 100
        bond_mode 802.3ad
#4-fach-bond0 / LAG1

#see wiki --> vlans
auto bond0.10
iface bond0.10 inet manual
        vlan-raw-device bond0
#Internet

auto bond0.11
iface bond0.11 inet manual
        vlan-raw-device bond0

auto bond0.12
iface bond0.12 inet manual
        vlan-raw-device bond0
#WLAN

auto bond0.13
iface bond0.13 inet manual
        vlan-raw-device bond0
#DMZ

auto bond0.50
iface bond0.50 inet manual
        vlan-raw-device bond0

auto bond0.60
iface bond0.60 inet manual
        vlan-raw-device bond0

auto bond0.100
iface bond0.100 inet manual
        vlan-raw-device bond0

auto bond0.200
iface bond0.200 inet manual
        vlan-raw-device bond0

auto vmbr0
iface vmbr0 inet static
        address  192.168.1.2
        netmask  255.255.255.0
        gateway  192.168.1.1
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0
#Default Bridge (FritBox/Rot)

auto vmbr1
iface vmbr1 inet manual
        bridge_ports bond0
        bridge_stp off
        bridge_fd 0
#4 fach Bond (Intel-Karte)

auto vmbr2
iface vmbr2 inet dhcp
        bridge_ports bond0.10
        bridge_stp off
        bridge_fd 0
        bridge_maxage 0
        bridge_ageing 0
        bridge_maxwait 0
#Internet

auto vmbr3
iface vmbr3 inet manual
        bridge_ports bond0.11
        bridge_stp off
        bridge_fd 0

auto vmbr4
iface vmbr4 inet manual
        bridge_ports bond0.12
        bridge_stp off
        bridge_fd 0
#WLAN

auto vmbr5
iface vmbr5 inet manual
        bridge_ports bond0.13
        bridge_stp off
        bridge_fd 0
#DMZ

auto vmbr6
iface vmbr6 inet manual
        bridge_ports bond0.50
        bridge_stp off
        bridge_fd 0

auto vmbr7
iface vmbr7 inet manual
        bridge_ports bond0.60
        bridge_stp off
        bridge_fd 0

auto vmbr8
iface vmbr8 inet manual
        bridge_ports bond0.100
        bridge_stp off
        bridge_fd 0

auto vmbr9
iface vmbr9 inet manual
        bridge_ports bond0.200
        bridge_stp off
        bridge_fd 0

Now: When I'm in the Proxmox-GUI I see this:
bond.jpg
(all bond.x devices are unknown -- why?)

When I use the command "brctl show" I also have some strange output like this:
vmbr2 8000.001b21484a50 no bond0.10
vmbr2v10 8000.001b21484a50 no bond0.10.10 <<<

So: Where's the error? Thanks for a hint.
 
you don't need to define

auto bond0.x
iface bond0.x inet manual
vlan-raw-device bond0


bridge_ports bond0.x should defined the tagged interface itself.


Another way is to simply define vlan tag in the vm network configuration
 
  • Like
Reactions: HE_Cole
Ok, I removed all self-created bond0.x entries again and restarted the VM-Host.

I also already tried to assign the VLAN-ID in the GUI like you mentioned:

bond1.jpg
Nevertheless I do not get an IP-Adress / conection in this VM on this vmbr ... there must be another error :(
 
Ok, I removed all self-created bond0.x entries again and restarted the VM-Host.

I also already tried to assign the VLAN-ID in the GUI like you mentioned:

View attachment 4157
Nevertheless I do not get an IP-Adress / conection in this VM on this vmbr ... there must be another error :(

This should work out of thé box. Check your physical switchs If vlans are allowed
 
hmm -- meanwhile it works but I don't have the impression that it's faster than without bond0 ... rather the oppposite: when I open a website in a VM it takes longer than before. So the question is: why?
I have a bond0 with mode 803.2ad / LACP (4 NICs).
Let's say that one of those cables is not working correctly -- what would be the effect? Would it be just slow or don't work at all then?