Can't get VLANs to work for VMs on same VLAN as PVE MGMT

unsichtbarre

New Member
Oct 1, 2024
23
3
3
I have a Proxmox DEV environment installed on a physical server (HPE). I have created a bond (bond0) with two uplinks, and then a Linux VLAN (VLAN 26) for Management IP and a Linux Bridge (points at bond0, VLAN aware). New VM on PVE host with Network Device = no VLAN will get native VLAN IP, but if I assign VLAN = 26 I get no network connectivity.

I had posted previously regarding a nested PVE installation on ESXI, but came to the apparently false conclusion that ESXi was the issue.

I don't understand how I can use VLANs for management and iSCSI, but they won't work for VMs?

THX,
-JB
 
OK, some progress. Management IP is on a Linux VLAN (VLAN 26)/Bond0 and working fine. I also need my first VM to be on VLAN 26, however it does not seem to have networking at all if I specify Bridge0/Bond0/VLAN 26 in the net0 device. If I switch to VLAN 24 for net0, the VM is immediately on the network.

How do I get VMs and PVE Management on the same VLAN?

THX,
-JB

/etc/network/interfaces
Code:
auto lo
iface lo inet loopback

auto eno49
iface eno49 inet manual

iface ens1f0 inet manual

auto eno50
iface eno50 inet manual

auto ens2f0
iface ens2f0 inet manual
        mtu 9000

iface ens1f1 inet manual

auto ens2f1
iface ens2f1 inet manual
        mtu 9000

iface ens1f2 inet manual

iface ens1f3 inet manual

auto bond0
iface bond0 inet manual
        bond-slaves eno49 eno50
        bond-miimon 100
        bond-mode active-backup
        bond-primary eno50
#10GbE Bond for Trunk

auto vmbr0
iface vmbr0 inet manual
        bridge-ports bond0
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 2-4094

auto MGMT
iface MGMT inet static
        address 172.20.100.151/16
        gateway 172.20.0.1
        vlan-id 26
        vlan-raw-device bond0
#Management IP

auto iSCSI1
iface iSCSI1 inet static
        address 10.0.0.151/24
        mtu 9000
        vlan-id 3262
        vlan-raw-device ens2f0
#iSCSI1

source /etc/network/interfaces.d/*