What does /31 mean?
The number after the slash is the prefix length: how many of the 32 bits in an IPv4 address are fixed for the network. A /31 fixes 31 bits and leaves one bit free, and one bit has two values, so a /31 holds exactly two addresses. Classic subnets reserve the first address as the network identifier and the last as broadcast, which would leave nothing usable in a block of two. RFC 3021 defined /31 for point-to-point links, where neither reservation is needed, so both addresses are usable.
On a CheapDedicated machine the pair is split simply: one address is the gateway on our router, the other is your server. The panel shows both after installation, next to the root password.
How does a /31 compare with other block sizes?
| Prefix | Total addresses | Usable for hosts | Typical use |
|---|---|---|---|
| /32 | 1 | 1 (no gateway inside) | Loopbacks, routed single IPs |
| /31 | 2 | 2 (gateway + server) | Point-to-point links, one server |
| /30 | 4 | 2 | Older point-to-point links |
| /29 | 8 | 6 | Small multi-IP setups |
| /24 | 256 | 254 | A full classic subnet |
A /30 spends four addresses to connect two devices; a /31 spends two. With public IPv4 scarce, halving the waste per server is the reason the /31 has become the normal way to hand a single address to a dedicated machine.
Why one address per machine?
Most servers need exactly one public address. A web stack, an API, a game server, a database replica and a hypervisor all live comfortably behind one IP: web servers route by hostname, containers publish ports, and virtual machines can sit behind NAT or a reverse proxy on the host. Keeping one address per machine is part of how the price stays low, and the address is included at no extra charge. Extra IPs are not sold, so plan a design that needs one public address per box; if you need more public endpoints, add another machine, which also brings its own Outbound traffic allowance allowance.
How is a /31 configured on Linux?
The image is installed with the network already set, so you normally have nothing to do. If you rebuild the configuration yourself, the key detail is that the gateway is the other address of the pair. Suppose the panel shows server 203.0.113.11 and gateway 203.0.113.10 (documentation addresses). With netplan on Ubuntu:
network:
version: 2
ethernets:
eno1:
addresses: [203.0.113.11/31]
routes:
- to: default
via: 203.0.113.10
nameservers:
addresses: [1.1.1.1, 9.9.9.9]
Apply with netplan try, which rolls back automatically if you lose the connection. On Debian with ifupdown, the same values go into /etc/network/interfaces as address 203.0.113.11/31 and gateway 203.0.113.10. On AlmaLinux, Rocky Linux and CentOS Stream, use nmcli:
nmcli con mod eno1 ipv4.addresses 203.0.113.11/31 ipv4.gateway 203.0.113.10 ipv4.method manual nmcli con up eno1
FreeBSD handles /31 the same way: set the address with the /31 mask in rc.conf and the other address as defaultrouter.
Can I run virtual machines with a single IP?
Yes, and many people do. On Proxmox VE or plain KVM, create a private bridge (for example 10.10.10.0/24) for the guests, enable NAT on the host, and forward only the ports you want exposed. A reverse proxy such as nginx or Caddy on the host can route many HTTPS sites to many guests by hostname, all through the one public address. Proxmox VE runs on all x86 machines; the D1 with 2x Xeon Gold 5315Y and 128 GB of RAM at $202.94 a month is a popular host for this.
What should I avoid?
- Do not send traffic from addresses that were not assigned to your machine; spoofed source addresses are against the fair use rules.
- Do not change the address or the prefix length; the router expects the exact pair shown in the panel.
- Keep a working console path in mind before editing the network: test changes with a rollback, as
netplan trydoes, because a typo can cut off SSH.
Machines Often Used as Single-IP Hosts
| Server | Processor | Cores / threads | Memory | Storage | Network | Per month | Smallest order |
|---|---|---|---|---|---|---|---|
| E1 | Intel Xeon E3-1240 v3 | 4 / 8 | 16 GB DDR3 | 2x 240 GB SSD | 2x 1 Gbps | $30.52 | $91.56 (3 months) |
| S1 | Intel Xeon E-2276G | 6 / 12 | 64 GB DDR4 | 1x 1 TB NVMe | 2x 10 Gbps | $53.32 | $53.32 (1 month) |
| D1 | 2x Intel Xeon Gold 5315Y | 16 / 32 | 128 GB DDR4 | 2x 1 TB NVMe | 2x 25 Gbps | $202.94 | $202.94 (1 month) |
| M1 | 2x Intel Xeon Gold 5315Y | 16 / 32 | 512 GB DDR4 | 2x 4 TB NVMe | 2x 25 Gbps | $414.70 | $414.70 (1 month) |
FAQ
Quick Answers
One public IPv4 address on a /31, included in the monthly price.
It is the gateway on our router. Your server uses the other one, and the panel shows both.
Extra IPs are not sold. Use one address with a reverse proxy or NAT, or add a second machine.
Yes. RFC 3021 defines /31 for point-to-point links, where both addresses are usable because no network or broadcast address is needed.
No. The image is installed with the address and gateway already set.