Manage DHCP services

DHCP provides a framework to assign configuration information to hosts, including IP addresses, gateway addresses, and DNS server addresses.

You can specify a VLAN as the scope of a DHCP service and configure multiple DHCP services for a virtual switch. Each DHCP service applies to the VMs in the corresponding VLAN. The VLAN settings of VMs are configured by using a port profile on the virtual switch. DHCP provides efficient IP address assignment services for medium networks or large networks that contain more than 100 VMs. Configurations on VMs are simplified as VMs automatically obtain IP addresses and configurations through DHCP.

Restrictions and guidelines

The DHCP server of a DHCP service uses the start IP address in the IP address pool of the DHCP service.

The IP address pools of DHCP services cannot overlap.

After you delete a DHCP service from a virtual switch, VMs that have been assigned IP addresses lose the IP addresses after a period of time, and VMs newly join the virtual switch cannot obtain IP addresses.

Add a DHCP service

  1. On the top navigation bar, click Compute.

  2. From the left navigation pane, select Resource Navigation > All > Resources > Host Pool Name > Host Name or Resource Navigation > All > Resources > Host Pool Name > Cluster Name > Host Name.

  3. Click the vSwitches tab.

  4. Click More in the Actions column for a virtual switch, and then select Advanced Settings.

  5. Click the DHCP Service tab.

  6. Click Add.

  7. Configure the parameters as described in "Parameters."

  8. Click OK.

Edit a DHCP service

  1. On the top navigation bar, click Compute.

  2. From the left navigation pane, select Resource Navigation > All > Resources > Host Pool Name > Host Name or Resource Navigation > All > Resources > Host Pool Name > Cluster Name > Host Name.

  3. Click the vSwitches tab.

  4. Click More in the Actions column for a virtual switch, and then select Advanced Settings.

  5. Click the DHCP Service tab.

  6. Click Edit in the Actions column for a DHCP service.

  7. Configure the parameters as described in "Parameters."

  8. Click OK.

Delete a DHCP service

  1. On the top navigation bar, click Compute.

  2. From the left navigation pane, select Resource Navigation > All > Resources > Host Pool Name > Host Name or Resource Navigation > All > Resources > Host Pool Name > Cluster Name > Host Name.

  3. Click the vSwitches tab.

  4. Click More in the Actions column for a virtual switch, and then select Advanced Settings.

  5. Click the DHCP Service tab.

  6. Click Delete in the Actions column for a DHCP service.

  7. In the dialog box that opens, click OK.

Parameters