Hi,
I read about how to create VLANs on a VM using nmcli, but I believe I have a more fundamental question.
My host has only 1 physical network interface, connected to a VLAN enabled swtich, on a untagged port (no vlan tag).
I have vlans 10 (the default) and 20.
My VM has 2 network deviecs: net0 and net1, with net0 untagged and net1 tagged for vlan 20.
The VM enp0s18 (net0) interface gets an IP 10.0.10.100 from the DHCP (Edge Router X router connected to the same switch).
However, enp0s19 (net1) interface gets no IP even though it is configured just as enp0s18. I expected it would be able to get the IP 10.0.20.100 from my vlan 20 dhcp server (also running on the router).
I thought proxmox would abstract the vlan tagging and make it transparent for the VM. Did I get it wrong?
Can someone point me on the right direction?
Thanks in advance, and sorry for my my lack of knowledge on the matter.
---
Edit 1:
I've found a video that seems to address the issue: https://www.youtube.com/watch?v=ljq6wlzn4qo
If I understood correctly, I'll have to create a vlan bridge on proxmox vmbr0.20 and set net1's bridge to vmbr0.20.
I also need to change my router to only accept tagged traffic on the port.
The switch port will have to be set as well to accept both Vlans 10 and 20.
I'll also have to create vmbr0.10 for the default vlan and update all VMs to be vlan aware as well, using 10 or 20.
Is it reasonable?
I read about how to create VLANs on a VM using nmcli, but I believe I have a more fundamental question.
My host has only 1 physical network interface, connected to a VLAN enabled swtich, on a untagged port (no vlan tag).
I have vlans 10 (the default) and 20.
My VM has 2 network deviecs: net0 and net1, with net0 untagged and net1 tagged for vlan 20.
The VM enp0s18 (net0) interface gets an IP 10.0.10.100 from the DHCP (Edge Router X router connected to the same switch).
However, enp0s19 (net1) interface gets no IP even though it is configured just as enp0s18. I expected it would be able to get the IP 10.0.20.100 from my vlan 20 dhcp server (also running on the router).
I thought proxmox would abstract the vlan tagging and make it transparent for the VM. Did I get it wrong?
Can someone point me on the right direction?
Thanks in advance, and sorry for my my lack of knowledge on the matter.
---
Edit 1:
I've found a video that seems to address the issue: https://www.youtube.com/watch?v=ljq6wlzn4qo
If I understood correctly, I'll have to create a vlan bridge on proxmox vmbr0.20 and set net1's bridge to vmbr0.20.
I also need to change my router to only accept tagged traffic on the port.
The switch port will have to be set as well to accept both Vlans 10 and 20.
I'll also have to create vmbr0.10 for the default vlan and update all VMs to be vlan aware as well, using 10 or 20.
Is it reasonable?
Last edited: