A Failover (floating/additional) IP lets you move a service between hosts. On modern Ubuntu you declare it in netplan.
Steps
List interfaces and current netplan config:
ip -br addrls /etc/netplan/sudo cat /etc/netplan/*.yamlAdd 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]Apply netplan and verify:
sudo netplan trysudo netplan applyip addr showCheck outbound connectivity and public IP:
ping -c 3 1.1.1.1curl -4 ifconfig.me
Tips
- Some clouds also require attaching/announcing the IP in the control panel.
- Use
netplan tryso a typo does not lock you out of SSH.
ext step
Stable extra IP on a ready VPS: Deploy your Cloud VPS.