Jump toUpdate content

How to use Private Networks

Reviewed on 26 May 2021Published on 26 May 2021

Private Network enable you to build a virtual Layer 2 network between your Instances, allowing them to communicate in an isolated and secure network. You can also opt to attach a Public Gateway to your private networks to provide extra functionality including IP autoconfiguration and NAT. Each Instance and Public Gateway can be connected to one or several Private Networks, letting you build your own network topologies.

Private Networks are a LAN-like layer 2 ethernet network. A new network interface with a unique media access control address (MAC address) is configured on each Instance in a Private Network.

Requirements:

How to create a Private Network

  1. Click VPC in the Network section of the side menu

  2. Click the Private Networks tab

  3. Click the Create a Private Network button. The creation wizard displays.

  4. Complete the following steps in the wizard:

    • Enter a Name for your private network, or leave the randomly-generated name in place. Optionally, you can also add tags to help you organize your private networks.
    • Choose an Availability Zone, which is the geographical region where your private network will be deployed. You can only add Instances from this same Availability Zone to the private network.
  5. Click Create a Private Network to finish. Your private network is created. You are taken back to the Private Networks tab, where your new private network is now displayed in the list.

How to attach and detach Instances to/from a Private Network

Remember that Instances must be within the same Availability Zone as a private network in order to be attached to it. If you have not yet created an Instance, see how to do so here.

  1. Click VPC in the Network section of the side menu

  2. Click the Private Networks tab

  3. Click the private network you want to add/remove Instances to. Alternatively, click «See more Icon» next to the private network in question and select More Info from the dropdown list. You are taken to the Overview page for that network.

  4. Click the Attached Resources tab

  5. To add an Instance, use the the dropdown menu to select an Instance to add to your private network (B), then click Add Instance.

    To detach an Instance, use the «Unlink Icon» icon next to the Instance in question to remove it from your private network. Confirm this action when prompted by clicking Detach this Instance

How to attach and detach Public Gateways to/from a Private Network

Learn more about attaching Public Gateways to Private Networks and detaching them here.

How to delete a Private Network

Note:

Prior to deleting a Private Network, resources attached to it must be detached.

  1. Click VPC in the Network section of the side menu

  2. Click the Private Networks tab

  3. Click next to the private network you wish to delete, and select Delete. A pop up displays asking you to confirm the action

  4. Confirm by typing DELETE in the box, and clicking Delete this Private Network

You are taken back to the Private Networks tab, where the network you just deleted no longer displays.

See Also