[SOLVED] PBS - Correct and simple VLAN settings

AlexanderB

New Member
Jul 26, 2026
10
1
3
Dear community,

i´m struggeling quite alot with the correct configuration of vlan, after the installation.
After the installation I have to edit "/etc/network/interfaces" to get that bare metal server to be on VLAN9.
But it seems it does not work like a normal PVE host. I already set it up completly new and lost all my backups. Thats pretty annoying.

After installation it looks like this:
Code:
auto lo
iface lo inet loopback

iface nic0 inet manual

iface nic0 inet static
        address 192.168.9.20/24
        gateway 192.168.9.1

iface nic1 inet manual

If I make an Linux bridge (VLAN aware) which points to the nic0 and a Linux VLAN which points to this bridge, it does not work. And this is the depressing part.
Can I just put that VLAN9 on that hardware interface nic0? Or do I have to work with linux bridge and linux vlan? But this did not work for me.

I thought this setup will do it, but it´s just not working:
Code:
auto lo
iface lo inet loopback

iface nic0 inet manual

iface nic1 inet manual

iface vmbr0 inet static
        address 192.168.99.20/24
        bridge-ports nic0
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 2-4094
#Emergency entry

     
auto vlan9
iface vlan9 inet static
        address 192.168.9.20/24
        gateway 192.168.9.1
        vlan-raw-device vmbr0
#VLAN9


And I want it to just work with VLAN9. It has to send and receive everything with a VLAN9 tag. Nothing else. nic1 is WLAN and not needed, can I comment that out?

I really hope that anyone can help me.
 
Last edited:
Hi AlexanderB

You could try with this vlan entry:

auto vmbr0.9
iface vmbr0.9 inet static
address 192.168.9.20/24
gateway 192.168.9.1

Did you check that vlan9 is tagged on nic0 uplink on switch-side (or Bridge when virtual) as with vmbr0 you're landing on a native-vlan (PVID) following your config.

And yes you could also directly use nic0.9 for the vlan.
 
  • Like
Reactions: AlexanderB
Thank you very much for your help.

I got it working with
Code:
auto lo
iface lo inet loopback

iface nic0 inet manual

#iface nic1 inet manual

auto vlan9
iface vlan9 inet static
        vlan-raw-device nic0
        address 192.168.9.20/24
        gateway 192.168.9.1
#VLAN9 Infrastructure

source /etc/network/interfaces.d/*
which is the same you pointed to.