PVE 4.2 VLAN with eth1

JJJames

Active Member
Oct 1, 2016
5
0
41
51
I have PVE 4.2 installed on a mac mini with two ethernet interfaces. Eth0 (vmbr0) is for management. I would like to use eth1 for my VMs to share using VLANs.
PVE-Networking.tiff
(https://dl.dropboxusercontent.com/u/10672445/ProxMox/PVE-Networking.tiff)
I have created vmbr100 and vmbr110.
vmbr100.tiff
(https://dl.dropboxusercontent.com/u/10672445/ProxMox/vmbr100.tiff)
When I configure the VLAN on Ubuntu desktop (14.04) I am unable to ping the vmbr110 IP (192.168.1.2) or the directly connected device.
Ubuntu-HW.tiff
(https://dl.dropboxusercontent.com/u/10672445/ProxMox/Ubuntu-Desktop-ifconfig.tiff)
I tried using eth0 in Ubuntu and then configuring eth0.100. Each time I ping I see the arp request but no response.
tcpdump vmbr110
vmbr100-TCPDUMP.tiff
(https://dl.dropboxusercontent.com/u/10672445/ProxMox/vmbr100-TCPDUMP.tiff)
debug from adc
adc-debug.tiff
(https://dl.dropboxusercontent.com/u/10672445/ProxMox/adc-debug.tiff)

I connected a different device to the adc and was able to ping with a vlan tag, so I know that device is configured properly. What am I missing in PVE? Help.

Thanks.
 
Anyone who needs a setup like this I was able to figure it out.

FYI - don't add a VLAN tag on the VM - it will add a second tag. Thank you SYSLOG...


This is my /etc/network/interfaces

auto lo
iface lo inet loopback

iface eth0 inet manual

auto vmbr0
iface vmbr0 inet static
address 10.10.100.12
netmask 255.255.255.0
gateway 10.10.100.254
bridge_ports eth0
bridge_stp off
bridge_fd 0

iface eth1 inet manual

#auto vmbr10
#iface vmbr10 inet static
# address 192.168.1.1
# netmask 255.255.255.0
# bridge_ports none
# bridge_stp off
# bridge_fd 0
# bridge_vlan_aware yes


auto eth1.101
iface eth1.101 inet manual
vlan_raw_device eth1

auto vmbr101
iface vmbr101 inet static
address 192.168.1.1
netmask 255.255.255.0
bridge_ports eth1.101
bridge_stp off
bridge_fd 0
post-up ip route add table vlan101 default via 192.168.1.1 dev vmbr101
post-up ip rule add from 192.168.1.0/24 table vlan101
post-down ip route del table vlan101 default via 192.168.1.1 dev vmbr101
post-down ip rule del from 192.168.1.0/24 table vlan101
 

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!