gist/proxmox-vlan-interfaces.md

21 lines
452 B
Markdown

# This setup enables the host IP on VLAN 30, but also enables VM's to get VLANs via VLAN tag.
# The base interface is called 'nic0'
auto lo
iface lo inet loopback
auto nic0
iface nic0 inet manual
# Trunk bridge carrying VLANs 20/30/40
auto vmbr0
iface vmbr0 inet manual
bridge-ports nic0
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 20 30 40
# Host management IP on VLAN 30
auto vmbr0.30
iface vmbr0.30 inet dhcp