Multiple Networks, Single NIC, VLANs on switch

acc

New Member
Jul 28, 2015
1
0
1
Hi,

I need some help understanding how I might configure proxmox for multiple, separate networks. I have a single switch port / ethernet cable coming into the pve hardware. I'm told by the network guys that that switch port has multiple (tagged) vlans such that each network is enabled on that switch port.

I've set up proxmox with the default vmbr0 on one of those networks setting the port/slave to eth0. Every VM that I spin up that's in that network behaves exactly as I expect. It can see out, it can get a DHCP lease, etc.
However, when I set up a VM that's on a different network, (obviously) it can't see out.

So, I set up a vmbr1 that's on that different network. And I set it's port/slave to eth0.3 (the tag for the vlan supporting that network). The only way I could figure out how to set it to be part of that other network was to assign an IP on that vmbr to an IP on that different network. See attached image for the description.

Can anyone tell me what I need to do in order to bring VM5 online?

Here's vm5's /etc/network/interfaces:
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 10.61.67.74
netmask 255.255.255.128
network 10.61.67.0
broadcast 10.61.67.127
gateway 10.61.67.1

Thanks in advance!
ACC
 

Attachments

  • proxmox_trouble.png
    proxmox_trouble.png
    61 KB · Views: 87
Last edited:
You can tag the nic setting in the VM options with the vlan tag. You don't need subinterfaces on the eth device on Proxmox host.
 
did anyone came up with a valid solution for this scenario? This is how i had always don't it with VMware but I'm unable to make this work with proxmox.
 
It is like pirateghost said, just enable "VLAN aware" on the vmbr0 bridge and enter the tag in the networking section of the respective VM settings.
There's no need for the host itself to have an address in every VLAN, as long as it doesn't have any business in there.
 
I ran into problems when I enabled "VLAN aware," but I am able to use VLANs on individual VLANs with that setting off on the bridge. I don't know why it's working for me that way, but that's what works on my bridged trunk.