Problem with vlans

wpk78

Member
Jan 29, 2021
1
0
6
45
Hello.
I have two nodes with proxmox 7.

I have problem with vlan on one PVE node. On my pve1 node everything work perfect (bond0 -> vmbr0 with vlan aware)
my lan configuration on pve1:
Code:
auto lo
iface lo inet loopback
auto eno1
iface eno1 inet manual
auto eno2
iface eno2 inet manual
auto eno3
iface eno3 inet manual
auto eno4
iface eno4 inet manual
auto bond0
iface bond0 inet manual
        bond-slaves eno1 eno2 eno3 eno4
        bond-miimon 100
        bond-mode 802.3ad
auto vmbr0
iface vmbr0 inet static
        address 192.168.0.8/24
        gateway 192.168.0.233
        bridge-ports bond0
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 2-4094


second node PVE2 have the same hardware like PVE1.
when I coped network configuration and change ip some vlans don't working. for example vlan200, other vlans working correctly

On guest hardware networking i set vlan to 200 and bridge to vmbr0 - on node pve1 working but on node pve2 not.

When i configure networkink on pve2 like:
Code:
auto lo
iface lo inet loopback

auto eno1
iface eno1 inet manual

auto eno2
iface eno2 inet manual

auto eno3
iface eno3 inet manual

auto eno4
iface eno4 inet manual

auto bond0
iface bond0 inet manual
        bond-slaves eno1 eno2 eno3 eno4
        bond-miimon 100
        bond-mode 802.3ad

auto vmbr0
iface vmbr0 inet static
        address 192.168.0.5/24
        gateway 192.168.0.233
        bridge-ports bond0
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 2-4094

auto vmbr0.200
iface vmbr0.200 inet manual

auto vmbr1
iface vmbr1 inet manual
        bridge-ports vmbr0.200
        bridge-stp off
        bridge-fd 0

and now on guest hardware networking i set bridge to vmbr1
vlan working - system get ip from 200 vlan network.

Why on first node all vlans working perfect but on second some vlans not.

Strange thing. On first configuration for second node) I have DHCP server on pfSense and when vlan was set to 200 directly to bridge vmbr0 on guest. on DHCP logs i found connections:
Nov 21 10:45:02 dhcpd 15633 DHCPDISCOVER from 82:51:d8:c7:14:4b (mint) via em0.200
Nov 21 10:45:03 dhcpd 15633 DHCPOFFER on 192.168.200.178 to 82:51:d8:c7:14:4b (mint) via em0.200
Nov 21 10:45:04 dhcpd 15633 DHCPDISCOVER from 82:51:d8:c7:14:4b (mint) via em0.200
Nov 21 10:45:04 dhcpd 15633 DHCPOFFER on 192.168.200.178 to 82:51:d8:c7:14:4b (mint) via em0.200

but on guest sytem network dont working. When i try set ip address manualy - network not work either
 
There are two ways to use VLANs.
1.) multiple vlan interfaces + multiple vlan-unaware bridges
2.) no vlan interfaces + a single vlan aware bridge and then working with the "VLAN tag" for the VMs virtual NICs

You are basically mixing both by running a vlan unaware bridge on top of a vlan interface on top of a vlan aware bridge.
I would try it without the vmbr1 and vmbr0.200 and directly connect your guests to vmbr0 and then setting "YourVM -> Hardware -> Network Device -> Edit -> VLAN Tag: 200".
 
Last edited:

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!