Several VLANs on one NIC for VM-Guests

Florian1

New Member
Jan 19, 2025
1
0
1
Hi all,

am new to Proxmox and wondering how I can setup several VLANs for one guest-VM.
This guest VM will be used as proxy and firewall between several networks.

So, the server itself has two hardware interfaces. Interface 1 is used as the mangement network port
Interface 2 shall be used for guest-VMs sitting on several different VLANs

The server is connected via two hardware network cables to a Netgear switch.
On the switch, interface 1 is configured to auto-tag all incoming networks packts as "VLAN100"
On the switch interface 2 will be used for "VLAN100" "VLAN110" and "VLAN120" (without auto-tagging)

As of today, only interface 1 (Management) is configured:

Code:
cat /etc/network/interfaces


auto lo
iface lo inet loopback

iface eno1 inet manual

auto vmbr0

iface vmbr0 inet static

        address 172.18.0.3/16

        gateway 172.18.0.250

        bridge-ports eno1

        bridge-stp off

        bridge-fd 0

iface idrac inet manual

iface eno2 inet manual

So, how can I bring up interface 2, so that I can map the individual VLANs from interface 2 onto the VMs?
Can someone provide a step-by-step guide?
 
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!