Create a network and connect it to a router
VMs live in private networks; routers connect those networks to the internet. Understanding the two takes five minutes and explains most of what the Networking pages in the panel do.
Step 1: create a router
A router is your internet gateway: it holds public IPv4 and IPv6 addresses and NATs traffic for the networks behind it.
- Go to Routers and click Create Router
- Name it (optional) and confirm
Public addresses are assigned automatically. One router can serve many networks, and the first router is free.
Step 2: create a network
A network is a private L2 segment with its own IP range. VMs in it talk to each other directly.
- Go to Networks and click Create Network
- Pick a CIDR from the private ranges
| Range | Example | Notes |
|---|---|---|
10.0.0.0/8 | 10.0.0.0/24 | The common default |
172.16.0.0/12 | 172.31.0.0/24 | Avoids clashes with home routers |
192.168.0.0/16 | 192.168.1.0/24 | Familiar, but clashes with most home LANs over VPN |
A /24 gives 254 usable addresses, enough for most setups. Pick a wider prefix only if you know you will need it: the CIDR is fixed after creation.
Step 3: attach the network to the router
- On Networks, open your network's ⋯ menu
- Select Attach to Router, pick the router, confirm
From this moment VMs in the network can reach the internet through the router's addresses. Detaching cuts that path again: VMs keep talking to each other, but nothing routes outside.
What VMs get
- Every VM created in the network receives a private IP from your CIDR
- Outbound internet works through the router (NAT), with 5 TB of external traffic included per VM per month
- A dedicated public IPv4+IPv6 per VM is optional: attach one only where something must be reachable from outside
- Networks attached to the same router can reach each other; internal VM-to-VM traffic includes 50 TB per month