Bobnded/trunked interfaces with vmbr0 on untagged vlan

K

kameleon

Guest
Just as the title says I am looking to get my proxmox servers to reside on my untagged vlan which in my configuration is vlan 1. On my Xen servers I have done this with little to no issue. However when I attempt it in proxmox I am left with an unreachable network. I can put them on any other vlan and it works but cannot have it on vlan1. Am I missing something?
 
Just as the title says I am looking to get my proxmox servers to reside on my untagged vlan which in my configuration is vlan 1. On my Xen servers I have done this with little to no issue. However when I attempt it in proxmox I am left with an unreachable network. I can put them on any other vlan and it works but cannot have it on vlan1. Am I missing something?

It just hit me that I can run it on vlan1 if it is not in a bonded interface. This may be due to running mode4 bonding. I am going to try mode6 and see what happens.
 
I encountered a similar situation with 802.3ad while back. It turned out to be a problem with how the LAGs were configured.
 
The other issue I am running into is on a mode4 bond it seems impossible to get my Dell DRAC cards to work. So I may be forced to go with mode6 afterall. If I read right mode6 will also allow full aggregate bandwidth on the bonded interfaces right? Like I have 2 gigabit interfaces it theoretically should do a maximum of 2gb/sec? Also, what is the LAGs you are referring to?
 
Does this look right for a single interface that is only a trunk? Two of my servers only have 2 NIC's and I need one to be the trunk'd interface while the other goes for SAN traffic only.

Code:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet manual

auto vlan1
iface vlan1 inet manual
vlan-raw-device eth0

auto vlan2
iface vlan2 inet manual
vlan-raw-device eth0

auto vlan3
iface vlan3 inet manual
vlan-raw-device eth0

auto vlan4
iface vlan4 inet manual
vlan-raw-device eth0

auto vlan5
iface vlan5 inet manual
vlan-raw-device eth0

auto vlan6
iface vlan6 inet manual
vlan-raw-device eth0

auto vlan7
iface vlan7 inet manual
vlan-raw-device eth0

auto vlan8
iface vlan8 inet manual
vlan-raw-device eth0

auto vlan9
iface vlan9 inet manual
vlan-raw-device eth0

auto vlan10
iface vlan10 inet manual
vlan-raw-device eth0

auto vlan11
iface vlan11 inet manual
vlan-raw-device eth0

auto vlan12
iface vlan12 inet manual
vlan-raw-device eth0

auto vlan13
iface vlan13 inet manual
vlan-raw-device eth0

auto vlan14
iface vlan14 inet manual
vlan-raw-device eth0

auto vlan15
iface vlan15 inet manual
vlan-raw-device eth0

auto vmbr0
iface vmbr0 inet static
        address 10.8.1.151
        netmask 255.255.255.0
        gateway 10.8.1.1
        bridge_ports vlan1
        bridge_stp off
        bridge_fd 0

#COMMENT this out since vmbr0 is using vlan1
#auto vmbr1
#iface vmbr1 inet manual
#bridge_ports vlan1
#bridge_stp off
#bridge_fd 0

auto vmbr2
iface vmbr2 inet manual
bridge_ports vlan2
bridge_stp off
bridge_fd 0

auto vmbr3
iface vmbr3 inet manual
bridge_ports vlan3
bridge_stp off
bridge_fd 0

auto vmbr4
iface vmbr4 inet manual
bridge_ports vlan4
bridge_stp off
bridge_fd 0

auto vmbr5
iface vmbr5 inet manual
bridge_ports vlan5
bridge_stp off
bridge_fd 0

auto vmbr6
iface vmbr6 inet manual
bridge_ports vlan6
bridge_stp off
bridge_fd 0

auto vmbr7
iface vmbr7 inet manual
bridge_ports vlan7
bridge_stp off
bridge_fd 0

auto vmbr8
iface vmbr8 inet manual
bridge_ports vlan8
bridge_stp off
bridge_fd 0

auto vmbr9
iface vmbr9 inet manual
bridge_ports vlan9
bridge_stp off
bridge_fd 0

auto vmbr10
iface vmbr10 inet manual
bridge_ports vlan10
bridge_stp off
bridge_fd 0

auto vmbr11
iface vmbr11 inet manual
bridge_ports vlan11
bridge_stp off
bridge_fd 0

auto vmbr12
iface vmbr12 inet manual
bridge_ports vlan12
bridge_stp off
bridge_fd 0

auto vmbr13
iface vmbr13 inet manual
bridge_ports vlan13
bridge_stp off
bridge_fd 0

auto vmbr14
iface vmbr14 inet manual
bridge_ports vlan14
bridge_stp off
bridge_fd 0

auto vmbr15
iface vmbr15 inet manual
bridge_ports vlan15
bridge_stp off
bridge_fd 0
 
I found the way to make it work on an untagged vlan. At least it is working so far. Would someone look over this and make sure I did not mess up anything?

Code:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet manual

# soon to be SAN interface
#auto eth1
#iface eth1 inet static
#

# Remove the vlan1 config from the interfaces file since it does not need to be tagged.
#auto vlan1
#iface vlan1 inet manual
#vlan-raw-device eth0

auto vlan2
iface vlan2 inet manual
vlan-raw-device eth0

auto vlan3
iface vlan3 inet manual
vlan-raw-device eth0
..............
auto vlan15
iface vlan15 inet manual
vlan-raw-device eth0

# And run vmbr0 directly on eth0 instead of a vlan
auto vmbr0
iface vmbr0 inet static
        address 10.8.1.151
        netmask 255.255.255.0
        gateway 10.8.1.1
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0

#auto vmbr1
#iface vmbr1 inet manual
#bridge_ports vlan1
#bridge_stp off
#bridge_fd 0

auto vmbr2
iface vmbr2 inet manual
bridge_ports vlan2
bridge_stp off
bridge_fd 0

auto vmbr3
iface vmbr3 inet manual
bridge_ports vlan3
bridge_stp off
bridge_fd 0
..............
auto vmbr14
iface vmbr14 inet manual
bridge_ports vlan14
bridge_stp off
bridge_fd 0

auto vmbr15
iface vmbr15 inet manual
bridge_ports vlan15
bridge_stp off
bridge_fd 0
 

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!