...
VLAN support is necessary for running a DHCP Server, DHCP Relay Server or a Gateway on a virtual machine.
This document describes how to prepare an ESXi host that will be used as a DHCP Relay Server.
For information about setting up DHCP Relay Servers please see Configuring DHCP in the Administrator's Guide.
...
In order to create all VLAN interfaces inside a DHCRelay VM, we need to attach its virtual NIC to a special Virtual Machine Port Group with VLAN 4095. You can see this config in the following image:
...