Hello everybody and merry Christmas!
I have a question regarding my Proxmox new setup and I struggle to configure VLANs.
On my pve, I have two NICs configured like this:
iface enp1s0 inet manual
auto vmbr0
iface vmbr0 inet manual
bridge-ports enp1s0
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094
auto vmbr0.10
iface vmbr0.10 inet static
address 192.168.48.6/24
gateway 192.168.48.254
auto vmbr0.30
iface vmbr0.30 inet dhcp
iface enp2s0 inet manual
auto vmbr1
iface vmbr1 inet manual
bridge-ports enp2s0
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094
auto vmbr1.10
iface vmbr1.10 inet static
address 192.168.48.7/24
gateway 192.168.48.254
auto vmbr1.30
iface vmbr1.30 inet dhcp
enp1s0 is plugged on the port 3 on my switch which is tagged on VLAN 10 and 30, I have set the PVID on the port to 10 (without this, I just can't get a connection on the Proxmox interface)
enp2s0 is plugged on the port 4 on my switch which is also tagged on VLAN 10 and 30 with the PVID 10.
VLAN 30 is the VLAN with DHCP.
When I create a VM, I put the VM on the vmbr0 or 1, if I tag this VM 30 and I can't get any IP from DHCP.
If I remove the tag 30 on the VM, same result.
I can see the DHCP discover/offer for the VM on the DHCP logs but nothing happens.
My question is how to get multiple VLAN working for a VM and also, how to get the VLAN with DHCP working?
Thank you very much for your help!
John
I have a question regarding my Proxmox new setup and I struggle to configure VLANs.
On my pve, I have two NICs configured like this:
iface enp1s0 inet manual
auto vmbr0
iface vmbr0 inet manual
bridge-ports enp1s0
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094
auto vmbr0.10
iface vmbr0.10 inet static
address 192.168.48.6/24
gateway 192.168.48.254
auto vmbr0.30
iface vmbr0.30 inet dhcp
iface enp2s0 inet manual
auto vmbr1
iface vmbr1 inet manual
bridge-ports enp2s0
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094
auto vmbr1.10
iface vmbr1.10 inet static
address 192.168.48.7/24
gateway 192.168.48.254
auto vmbr1.30
iface vmbr1.30 inet dhcp
enp1s0 is plugged on the port 3 on my switch which is tagged on VLAN 10 and 30, I have set the PVID on the port to 10 (without this, I just can't get a connection on the Proxmox interface)
enp2s0 is plugged on the port 4 on my switch which is also tagged on VLAN 10 and 30 with the PVID 10.
VLAN 30 is the VLAN with DHCP.
When I create a VM, I put the VM on the vmbr0 or 1, if I tag this VM 30 and I can't get any IP from DHCP.
If I remove the tag 30 on the VM, same result.
I can see the DHCP discover/offer for the VM on the DHCP logs but nothing happens.
My question is how to get multiple VLAN working for a VM and also, how to get the VLAN with DHCP working?
Thank you very much for your help!
John