VLANs and Proxmox Server/VMs

spetrillo

Member
Feb 15, 2024
242
12
18
Hello all,

I am very new to Proxmox, having come from the VMware world. On my ESXi hypervisor my server's mgmt interface sits on one vlan and the vms sit on another vlan. I also employ DHCP, with a MAC reservation, for the mgmt IP. Since I am new to Proxmox I understand that the network configuration is within /etc/network/interfaces file. Here is a copy of it:

auto lo
iface lo inet loopback

iface eno1 inet manual

auto vmbr0
iface vmbr0 inet manual
# address 192.168.1.5/24
# gateway 192.168.1.1
bridge-ports eno1
bridge-stp on
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 30

auto vmbr0.1
iface vmbr0.1 inet static
address 192.168.1.5/24
gateway 192.168.1.1


As you can see I have setup vlan 30, which is my vm vlan. In my network vlan 30 is 192.168.2.96/27. Do I need to specify anything for vmbr0 to lay out vlan 30 or will this be automatically done? Can I change iface vmbr0.1 inet static to dhcp and remove the address and gateway lines, so the DHCP reservation kicks into effect?

Thanks,
Steve
 
I am not setting IPs on my vlans for vm. IE:

auto bond10
iface bond10 inet manual
bond-slaves enp33s0 enp34s0 enp35s0 enp36s0
bond-miimon 100
bond-mode balance-xor
bond-xmit-hash-policy layer2+3
mtu 9000
#Bond 4x10gbe uplink

auto vmbr1015
iface vmbr1015 inet manual
bridge-ports bond10.1015
bridge-stp off
bridge-fd 0
bridge-ageing 0
#vlan_10.0.60.0/24_cscaleout


You should be able to setup static, dhcp, or none just fine.