What is a private network?

You can find private networks in your control panel under Servers → Networks. You can set up private networks of virtual servers to interconnect servers for such tasks as a web server and its database server (or other servers), for replication purposes, for a cluster, etc. All traffic going between the servers stays inside the private network and does not go out to the internet.

That said, it’s quite simple to set up a private network, even if the servers are in different locations. All servers connected to the private network are in one segment, as if they were plugged into the same switch.

Private networks list

How it works

  • A virtual server has two network adapters. The main adapter is connected to the outside world with a public IP address, whereas the second adapter connects to a private network of virtual servers.
  • Until a server joins a network, its second adapter stays isolated.
  • The network is isolated, i.e. only your servers are on it.
  • The VLAN number is chosen automatically.
  • A server can be a member of only one private network.
  • Private networks are available for virtual servers only.

Creating a network

  1. Open Servers → Networks.
  2. Click Create network. The network is created right away under the name “Private network”, and its page opens.
  3. You can change the name. Click it at the top of the page, type a new one (e.g. backend) and press Enter.
  4. Click Add servers, tick the servers you want and confirm. Any server that is already in another private network will be moved to this one.

Choosing servers for a private network

Connecting from the server page

You can also connect a server from its own page. Open the server, go to the Network tab and find the Private network block. Pick a network in the Connect to network... list there. If you have no networks yet, the block shows a Create network and connect button instead.

The Private network block on the server’s Network tab

Setting addresses on the servers

Addresses in a private network are not assigned automatically. Set the IP addresses for the servers yourself on their second virtual adapter, from a private range such as 10.10.0.0/24. For example: 10.10.0.1/24 and 10.10.0.2/24 for the two servers.

On Linux you can try the address right away:

ip addr add 10.10.0.1/24 dev eth1 && ip link set eth1 up

In order to persist the IP address and be able to turn on the adapter after a reboot, add it to your server’s network configuration. On Windows, this would be done by editing the second network adapter’s properties and adding the IP address there.

Then test the connection between the servers with ping 10.10.0.2.

Disconnecting a server and deleting a network

  • To disconnect a server from a private network, click Disconnect next to the server on the network page and confirm. Its second adapter goes back to isolation.
  • To remove the entire network, open it, click Delete network in the Danger zone block and then Delete. All servers are disconnected from the network, but they keep running.
Servers in a network, the Disconnect buttonThe Danger zone block with the Delete network button

You can have one private network by default. Contact support if you need more.