What Is a Private Network?
A private network (VPC) provides an isolated Layer 2 network segment for your servers. Traffic between servers on the same private network does not traverse the public internet.
Use Cases
- Database servers accessible only from application servers
- GPU cluster inter-node communication (NCCL)
- Microservices that should not be publicly exposed
Creating a Private Network
- Go to Network → VPS Networks → Create Network.
- Choose a region.
- Specify a CIDR block, e.g.
10.10.0.0/24. - Give it a name, e.g.
ml-cluster-net.
Attaching Servers to the Network
At Deploy Time
Select the private network in the Advanced Options section of the deploy form.
On a Running Server
- Go to Servers → [Your Server] → Settings → Private Networks.
- Click Attach Network.
- Assign an IP from the CIDR range.
Configuring the Network Interface
After attaching, configure the interface on the server:
$# Find the new interface (usually eth1 or ens4)$ip link show$$# Assign IP manually$ip addr add 10.10.0.10/24 dev eth1$ip link set eth1 up$$# Make persistent (Ubuntu 22.04 Netplan)$cat > /etc/netplan/60-private.yaml << EOF$network:$ version: 2$ ethernets:$ eth1:$ addresses:$ - 10.10.0.10/24$EOF$netplan applyTesting Connectivity
$# From server A (10.10.0.10)$ping 10.10.0.11$$# Check latency$iperf3 -s # on server B$iperf3 -c 10.10.0.11 # on server AExpected throughput: 10+ Gbps within the same region.
