How to create and manage private networks with the DreamCompute Dashboard

Private networking is a useful feature that you may wish to utilize for advanced cloud setups. For a description of private networking and how to have it enabled on your account, please review the following article:

Private network options

Once DreamHost technical support has enabled private networking, you can add a private network to your account. Please review the options below to determine settings for the private network.

Network block

There are various private network blocks that are available for use with private networks which are specified in CIDR format. Common examples of this are 10.0.0.0/24 or 192.168.0.0/24, however there are other networks to choose from as well. In the example below, the address 10.0.0.0/24 is used.

DHCP

When a subnet is defined, DHCP can be set to enabled or disabled. It can also be changed later if desired. When DHCP is enabled, newly created instances run cloud-init at startup and detect it, therefore determining it isn't necessary to hard-code network settings into the operating system.

If it is disabled, these settings are hard-coded. Having DHCP enabled can help with creating snapshots and new instances from those snapshots as the snapshots won't have hard-coded network configs in them. However, older versions of cloud-init fail to boot entirely when DHCP is enabled.

As of December 2017, all public images catered by DreamHost have a version of cloud-init that supports DHCP.

Checking if Private Networking has been enabled

After you have requested that Private Networking be enabled on your account, check your DreamCompute dashboard to confirm it's enabled.

how-to-create-and-manage-private-networks-with-the-dreamcompute-dashboard_00

In the left pane, click the 'Project > Network > Networks' tabs. To the right you'll see a Create Network button. If the button is greyed out and says 'Quota exceeded', private networking has not been enabled on your project yet. Once it has been enabled, you'll be able to press this button to add a private network.

Adding the private network

  1. Log into your DreamCompute dashboard.
    how-to-create-and-manage-private-networks-with-the-dreamcompute-dashboard_01.png
  2. In the left pane, click the 'Project > Network > Networks' tab.
  3. Click the Create Network button. A new window appears:how-to-create-and-manage-private-networks-with-the-dreamcompute-dashboard_02.png
  4. Enter a name for the network such as "private-network".
  5. Leave the "Enable Admin State" and "Create Subnet" boxes checked.
  6. Click the Next button to proceed to the 'Subnet' tab.
    how-to-create-and-manage-private-networks-with-the-dreamcompute-dashboard_03.png
  7. An optional Subnet name can be specified if desired.
  8. On the Subnet tab, enter the CIDR range that you decided on above for the private network into the "Network Address" field.
  9. When finished, click the Next button to proceed to the 'Subnet Details' tab.
    how-to-create-and-manage-private-networks-with-the-dreamcompute-dashboard_04.png
  10. Check or uncheck the 'Enable DHCP' checkbox depending on the decision made in the DHCP section above.
  11. In the "DNS Name Servers" field, enter the values 8.8.8.8 and 8.8.4.4 on their own lines.
  12. Finally, click the Create button.

Create a router

  1. Navigate to the 'Project > Network > Routers' tab.
    how-to-create-and-manage-private-networks-with-the-dreamcompute-dashboard_05.png
  2. Click the + Create Router button on the top right.
    how-to-create-and-manage-private-networks-with-the-dreamcompute-dashboard_06.png
  3. A new window appears. Enter a name for the router such as "private-router".
  4. Leave the 'Enable Admin State' box checked.
  5. Select "public" from the 'External Network' drop-down.
  6. Finally, click the Create Router button.
    how-to-create-and-manage-private-networks-with-the-dreamcompute-dashboard_07.png
  7. Once the router is displayed, click on the router's name to navigate to the router details page.
    how-to-create-and-manage-private-networks-with-the-dreamcompute-dashboard_08.png
  8. Click the 'Interfaces' tab that is displayed on the top left.
  9. Click on the + Add Interface button on the top right.
    how-to-create-and-manage-private-networks-with-the-dreamcompute-dashboard_09.png
  10. In the "Subnet" drop-down, select the private network created in steps #1-4 above.
  11. Finally, click the Submit button.

Using the private network

This completes the process of adding a private network to the account. To select the private network and add a floating IP address, follow the additional steps below.

  1. Navigate to the 'Project > Compute > Instances' tab.
  2. Click the Launch Instance button on the top right.
    how-to-create-and-manage-private-networks-with-the-dreamcompute-dashboard_10.png
  3. Complete the "Details", "Source", "Flavor", and "Key Pair" sections as normal.
  4. In the 'Networks' tab, click the up arrow button "⇑" to add the private network you created to this instance.
  5. Finally, click the Launch Instance button to launch the instance.

Floating IP association

  1. Navigate to the 'Project > Compute > Instances' tab.
    how-to-create-and-manage-private-networks-with-the-dreamcompute-dashboard_11.png
  2. To the right of the instance is a dropdown menu. Click the down arrow to expand it and select "Associate Floating IP".
  3. Provision a floating IP address if needed.
    how-to-create-and-manage-private-networks-with-the-dreamcompute-dashboard_12.png
  4. If a floating IP has not yet been provisioned, click the "+" button to do so. The provision window has only one "Pool" available named "Public" to select, and an "Allocate IP" button to complete the process.
  5. Select an available floating IP from the "IP Address" drop-down, and the private IP address of the above instance in the "Port to be associated" drop-down.
  6. Finally, click the Associate button.
  7. Verify floating IP assignment. The floating IP address assigned appears on the 'Project > Compute > Instances' page in the "IP Address" column.
    how-to-create-and-manage-private-networks-with-the-dreamcompute-dashboard_13.png

If you have additional questions about floating IP addresses, please review our article here:

Did this article answer your questions?

Article last updated .