Introduction to Gateway Services: DHCP

You can configure DHCP inside the vCloud Air to customize your network environment. Here, we look at how to modify the DHCP pool and how to add virtual machines with and without VMware Tools installed.

Watch the video

1. Manage DHCP in the Default Isolated Network


If you're not already logged in, to get started:

  1. Go to https://vchs.vmware.com/login and log in to vCloud Air.
  2. On the Dashboard tab, click the virtual data center where you want to see the default networking (in this example, we use the SHAREPOINT virtual data center).



  3. Click the Networks tab, and note the following:
  • Two networks have been created-a default isolated network and a default routed network.
  • These networks are created automatically when at least one public IP address is specified for this virtual data center.



4. Click Manage in vCloud Director to access the vCloud Director user interface.

  • This takes you directly to the Org VDC Networks tab within the vCloud Director UI.


5. To manage the DHCP settings for the default isolated network, click the network name, and then click Configure Services.



6. In the Configure Services window, review the DHCP tab:

  • Note that in an isolated network, DHCP is the only option, and it is enabled by default.




7. Click Edit.

8. In the Edit DHCP Pool window, note the following:

  • The pool is enabled, and in this example, a default range from .101 to .254 has been assigned.
  • Default and max lease times have been set.
  • The pool can be shortened or extended, as needed. For example, you could take the top 50 addresses off and use them for static routing. Or, you could delete the pool and replace it with another.




9. Click OK to save your changes.

2. Manage DHCP in the Default Routed Network

  1. To manage the DHCP settings for the default routed network, click the network name, and then click Configure Services.



  2. In the Configure Services window, review the DHCP tab:
  • Note that in a routed network, DHCP is not enabled by default.
  • Before you can add a DHCP pool, you need to find out what IP range is valid.




3. Click Cancel to return to the vCloud Director Administration window.

4. To see what IP range is valid, click the routed network name, and then click Properties.



5. In the Network Properties window, click the Network Specification tab, and note the following:

  • In this example, the gateway address is 192.168.109, and the IP range goes from .2 to .100.
  • This is a static pool, so when a virtual machine is set to a static IP address or IP pool, vCloud Air will use VMware tools to push an IP address that is based on this range. This means that VMware tools must be installed.
  • For virtual machines without VMware tools installed, you need to add a DHCP pool.




6. Click Cancel to return to the vCloud Director Administration window.

7. To add a DHCP pool, click the routed network name, and then click Configure Services.



8. In the Configure Services window, on the DHCP tab, select Enable DHCP, and then click Add.



9. In the Add DHCP Pool window, enter the IP range, and then click OK.

  • The IP range should be different from the static IP pool. In this example, because .2 to .100 were already reserved for the static pool, we use .101 to .125 for the DHCP range.
  • With the DHCP role created, any virtual machine that does not have VMware tools installed can be attached to the network by setting it to DHCP.


3. Manage DHCP from the Gateway

Alternatively, you can manage and edit DHCP settings from the Gateway. Because only the routed network is connected to the gateway, this method exposes the DHCP settings for routed networks.

  1. On the Edge Gateways tab, click the routed network name, and then click Edge Gateway Services.



  2. In the Configure Services window, note the following:
  • The default routed network appears, but the default isolated network does not.
  • From here, you can configure only the DHCP range for the routed network. This is because the isolated network is not connected to the edge gateway.