Exclusive Metin2 game shield on FreeBSD: Automatic siege mode, VIP list, and whitelist from your dashboard. See how it works
Create a server

Guide

How to Set Up Failover IP in Linux

A Failover (floating/additional) IP lets you move a service between hosts. On modern Ubuntu you declare it in netplan.

Steps

  1. List interfaces and current netplan config:

    ip -br addr
    ls /etc/netplan/
    sudo cat /etc/netplan/*.yaml
  2. Add the extra IP on the primary NIC (example — replace names/addresses):

    sudo nano /etc/netplan/50-cloud-init.yaml
    # addresses: [PRIMARY/32, FAILOVER_IP/32]
  3. Apply netplan and verify:

    sudo netplan try
    sudo netplan apply
    ip addr show
  4. Check outbound connectivity and public IP:

    ping -c 3 1.1.1.1
    curl -4 ifconfig.me

Tips

  • Some clouds also require attaching/announcing the IP in the control panel.
  • Use netplan try so a typo does not lock you out of SSH.

ext step

Stable extra IP on a ready VPS: Deploy your Cloud VPS.

Related guides