[SOLVED] VLAN - Main Proxmox Machine in it

ArchMatt

New Member
Dec 25, 2023
2
0
1
Greetings to all virtualization and proxmox fans.
Now I am facing another challenge and that is that I have introduced VLANs into my infrastructure.

My main proxmox server has 3 ethernet accesses.
eno1 -> from motherboard
enp1s0f0 -> PCIe card
enp1s0f1 -> PCIe Card

I'd like eno1 to be purely for Proxmox as such but not static but DHCP where it is assigned VLAN 20 like a normal computer. Since I set the static addresses in my Mikrotik router where I assign it its fixed address.

Other VMs or LXCs will use just the PCIe interface for their connections.

How should this setup look like in /etc/network/interfaces ?
is this even possible ?
 
Solved - if somebody will loook up for something as i do :) there is how i do it.
Code:
auto lo
iface lo inet loopback

iface eno1 inet manual

auto enp1s0f0
iface enp1s0f0 inet manual

auto enp1s0f1
iface enp1s0f1 inet manual

auto vmbr0
iface vmbr0 inet dhcp
        bridge-ports vlan20
        bridge-stp off
        bridge-fd 0
        bridge_waitport 0

iface wlp3s0 inet manual

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

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

auto vlan20
iface vlan20 inet manual
        vlan-raw-device eno1