Configure VLAN tagging on a VMware ESXi host to run a DHCP Server or a Gateway. |
To run a DHCP Server or a Gateway on a VM on ESXi, you will need VLAN support.
In order to create VLAN interfaces on a VM and listen to them, we need to attach the VMs virtual NIC to a Virtual Machine Port Group with VLAN 4095, which represents all VLANs.
Before you begin, remember that you may also need to configure the VM. An 802.1Q VLAN trunking driver is usually loaded by default on Windows and Linux. Remember to select an E1000 Ethernet driver.
Follow these steps to create the Port Group with VLAN 4095 using vSphere Client v6.5:
This port group will be used when receiving DHCP tagged demands from deployed VMs.