Configure Additional Elastic IPs
For non-/32 elastic IP blocks, only the gateway IP is automatically assigned to the instance. The remaining IPs must be manually configured inside the operating system before they can be used.
Currently supported operating systems:
Ubuntu
CentOS
ESXi
Before you start, make sure you have:
The allocated EIP block (e.g.,
203.0.113.16/28)The gateway IP (automatically assigned)
The subnet mask (e.g.,
/28→255.255.255.240)The primary network interface name (e.g.,
wan0)
You can check the interface name using:
ip addrUbuntu Configuration
Applies to Ubuntu 18.04+ (Netplan-based systems)
Step 1: Edit Netplan configuration
sudo nano /etc/netplan/00-installer-config.yamlStep 2: Add additional IPs under addresses
Example:
Step 3: Apply changes
CentOS Configuration
Applies to CentOS 7 / 8
Step 1: Edit interface configuration
Step 2: Add secondary IPs
Example:
Step 3: Restart network service
Or:
ESXi Configuration
Step 1: Log in to ESXi Web UI
Go to:
Step 2: Edit the VMkernel adapter
Add additional IPv4 addresses
Use the same subnet mask as your elastic IP block
Ensure gateway is correctly configured
Step 3: Save and Apply
Temporary Configuration (Linux – For Testing Only)
If you want to temporarily assign an additional elastic IP address for testing purposes without making permanent changes, use the following command:
To remove the IP address manually:
Last updated
Was this helpful?