LightYear
/Docs
DocsNetworkingCreate a Private VPS Network

Create a Private VPS Network

Set up a private network to enable secure, low-latency communication between your servers without public internet exposure.

intermediate
7 min read
LightYear Team
Updated April 24, 2026
private-networkvpcnetworkingsecurity
Ready to get started?

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

  1. Go to Network → VPS Networks → Create Network.
  2. Choose a region.
  3. Specify a CIDR block, e.g. 10.10.0.0/24.
  4. 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

  1. Go to Servers → [Your Server] → Settings → Private Networks.
  2. Click Attach Network.
  3. Assign an IP from the CIDR range.

Configuring the Network Interface

After attaching, configure the interface on the server:

>_BASH
$# 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 apply

Testing Connectivity

>_BASH
$# 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 A

Expected throughput: 10+ Gbps within the same region.

Was this article helpful?

Your cookie choices for this website

This site uses cookies and related technologies, as described in our privacy policy, for purposes that may include site operation, analytics, and enhanced user experience. You may choose to consent to our use of these technologies, or manage your own preferences. Cookie policy