VLAN trunk inside VM for Docker

myscha

New Member
Jun 10, 2024
4
0
1
Hello,

currently I have a VLAN aware bridge in Proxmox and I'm running two separate VMs. Each acts as a Docker host in a dedicated VLAN (one in VLAN 3 and one in VLAN 4). VLAN 3 is my private LAN and VLAN 4 is my guest LAN. Now I'd like to add Pi-hole as Docker container and it would be great if it could be used for both VLANs. Otherwise I'd have to install and support it two times and I'd like to avoid that.

Is there a way to forward the whole VLAN trunk into the VM and map one or more VLANs to a Docker contaier inside?

You can see the current config of the network and the two VMs on the screenshots.
 

Attachments

  • Bildschirmfoto_20240712_211406.png
    Bildschirmfoto_20240712_211406.png
    18.2 KB · Views: 4
  • Bildschirmfoto_20240712_211443.png
    Bildschirmfoto_20240712_211443.png
    50 KB · Views: 4
  • Bildschirmfoto_20240712_211455.png
    Bildschirmfoto_20240712_211455.png
    49.9 KB · Views: 4

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!