Documentation menu: Reserved IP
IPv4 Updated

Set up the IP by hand

Commands that add a Reserved IP on Linux and Windows, and keep it after a reboot

The Reserved IP is normally added inside the server for you. Use this page when the server page says Needs setup on the server: the address is already attached, and only the operating system needs it.

Linux#

Run as root. This adds the address as a /32 on the network card that holds the primary IP, then sends one packet so the network learns where the address now lives.

Terminal
sudo ip addr add 203.0.113.10/32 dev eth0
sudo ping -c 1 -I 203.0.113.10 203.0.113.1 >/dev/null || true

eth0 is the network card with the primary IP. If yours has another name (check with ip -br addr), use that.

Keep it after a reboot (Ubuntu and other netplan systems)#

ip addr add lasts until the next reboot. Add a separate netplan file with just this address:

/etc/netplan/60-reserved-ip.yaml
network:
  version: 2
  ethernets:
    eth0:
      addresses:
        - 203.0.113.10/32
Terminal
sudo chmod 600 /etc/netplan/60-reserved-ip.yaml
sudo netplan apply

When you move or detach the address, delete the file and run sudo netplan apply again.

An address on a new network card#

Sometimes a Reserved IP is on a different network from the primary IP. The server then gets a new network card, and the console's commands also set up routing so replies leave through that card. Copy the console's commands as they are; do not adapt the example above.

Windows#

Open PowerShell as an administrator and run:

Terminal
netsh interface ipv4 add address "Ethernet" 203.0.113.10 255.255.255.255 skipassource=true store=persistent

store=persistent keeps the address after a reboot. Ethernet is the network card with the primary IP; if yours has another name (check with Get-NetAdapter), use that.

Check that it works#

  1. On the server, check the address is on the card: ip -br addr on Linux or ipconfig on Windows.
  2. From another computer, try ping 203.0.113.10 or open your site through the address (make sure the server's firewall allows the port).
  3. Still nothing? Open a support ticket with the address and the server name.