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:
Follow these steps to create this Port Group:
- Log in to the vSphere Client and select the host from the inventory panel.
- Click the Configuration tab and click Networking.
- Select the Virtual Switch view. vSwitches appear in an overview that includes a details layout.
- On the right side of the page, click Add Networking.
- Accept the default connection type, Virtual Machines, and click Next.
- Select "Create a virtual switch" or select one of the existing vSwitches. Attach the selected vSwitch to the service network (VLANs network).
- Click Next.
- In the Port Group Properties group, enter a network label to identify the port group you are creating. Note: The network label can contain up to 63 characters.
- In the VLAN field, enter 4095
- Click Next.
- After you determine that the vSwitch is configured correctly, click Finish.
This port group will be used when receiving DHCP tagged demands from deployed virtual machines.