← Back to VPS & Dedicated

Setting Up a Private Network

A private network connects multiple VPS servers over an internal network, allowing them to communicate without exposing traffic to the public internet β€” ideal for database servers, application clusters, and load balancers.

Enabling a Private Network

Contact Double Hosting support to enable private networking for your VPS instances. Once enabled, each VPS will have an additional private network interface (e.g., eth1) with a private IP address.

Configuring the Private Interface

On Ubuntu, add the private interface configuration to /etc/netplan/. On CentOS, configure /etc/sysconfig/network-scripts/ifcfg-eth1. The private IP and subnet are provided by Double Hosting when the network is provisioned.

Common Use Cases

  • Web server on one VPS connects to MySQL server on another via private IP β€” database port never exposed publicly
  • Load balancer distributes traffic to multiple web servers over private network
  • Redis or Memcached cache server accessible only to application servers

Was this article helpful?

On This Page