Updated: 19 November 2026 · Applies to: AlmaLinux 9, Rocky Linux 9, Ubuntu 24.04 and Debian 12

Add extra IP addresses to a server permanently with the system's network tools. Only add addresses that are routed to your server.

AlmaLinux / Rocky Linux 8 and 9 (NetworkManager)

nmcli connection show                                    # find the connection name, e.g. eth0
nmcli connection modify eth0 +ipv4.addresses 203.0.113.25/24
nmcli connection up eth0

Ubuntu (Netplan)

Add the address under addresses: in /etc/netplan/*.yaml and run netplan apply.

Check with ip addr. On cPanel servers, also add the IP in WHM (see "Adding Secondary IPs to cPanel via SSH").

Note: The old ifcfg-eth0:0 files belong to CentOS 7 and earlier. Keep console (VNC) access open while changing network settings.

Related services

Managed Webmin VPS

root access with updates, security and monitoring handled, from $22 a month.

KVM VPS hosting

NVMe SSD and full root access, with Free Basic Managed Support.

Was this answer helpful?

Still stuck? Open a ticket