VLANs only working with Containers

zmatt

New Member
Jul 25, 2017
2
0
1
26
Hi, I'm trying to set up vlans with proxmox, this is my network setup:
Router/Switch-(native vlan 1 and tagged vlan 100)->proxmox host
And here is my /etc/network/interfaces

auto lo
iface lo inet loopback

iface enp3s0f2 inet manual

auto enp3s0f2.100
iface enp3s0f2.100 inet manual

auto vmbr0
iface vmbr0 inet static
address 192.168.0.205
netmask 255.255.255.0
gateway 192.168.0.1
bridge_ports enp3s0f2
bridge_stp off
bridge_fd 0

auto vmbr1
iface vmbr1 inet static
address 192.168.2.205
netmask 255.255.255.0
gateway 192.168.2.1
bridge_ports enp3s0f2.100
bridge_stp off
bridge_fd 0​


If use vmbr1 on a container it works fine but if i try to use it on a VM it doesn't work:
(on the vm)
[root@testvm ~]# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 1c:1b:0d:91:06:c9 brd ff:ff:ff:ff:ff:ff
valid_lft forever preferred_lft forever​
 
do you have a dhcp server in your vlan 100 ? or did you try to setup a static ip in the vm ?
 
It looks like it's working now, i just set a static ip on one of the VMs and then set it back to dhcp and now all vms are working
 

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!