How to create and manage private networks with the DreamCompute Dashboard

Overview

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.

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 in to your DreamCompute dashboard.
    how-to-create-and-manage-private-networks-with-the-dreamcompute-dashboard_01.png
  2. Click the Project > Network > Networks tab in the left pane.
  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. An optional Subnet name can be specified if desired.
    how-to-create-and-manage-private-networks-with-the-dreamcompute-dashboard_03.png
  7. On the Subnet tab, enter the CIDR range that you decided on above for the private network into the "Network Address" field.
  8. Click the Next button when finished to proceed to the Subnet Details tab.
    how-to-create-and-manage-private-networks-with-the-dreamcompute-dashboard_04.png
  9. Check or uncheck the Enable DHCP checkbox depending on the decision made in the DHCP section above.
  10. Enter the values 8.8.8.8 and 8.8.4.4 on their own lines in the "DNS Name Servers" field.
  11. 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
    A new window appears.
  3. 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 dropdown.
  6. Click the Create Router button.
    how-to-create-and-manage-private-networks-with-the-dreamcompute-dashboard_07.png
  7. Click on the router's name once the router is displayed 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. Select the private network created in steps #1-4 above in the Subnet dropdown.
  11. 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. Click the up arrow button "⇑" in the Networks tab to add the private network you created to this instance.
  5. 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. Click the down arrow to the right of the instance to expand a dropdown menu, and then select Associate Floating IP.how-to-create-and-manage-private-networks-with-the-dreamcompute-dashboard_12.png
  3. Click the "+" button to provision a floating IP if needed. The provision window has only one "Pool" available named "Public" to select, and an Allocate IP button to complete the process.
  4. Select an available floating IP from the IP Address dropdown and the private IP address of the above instance in the Port to be associated dropdown.
  5. Click the Associate button.
  6. Verify the 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 PST.

Still not finding what you're looking for?