Linux – Configuring an Additional IP Address
Requirements
- Operating system: Debian 13, Ubuntu 26.xx
- SSH access with highest privileges (root)
Temporary IP address assignment
- We log in to the system shell.
You can connect to the shell using, for example, SSH.
- We issue the
ip acommand to determine the configuration and available adapters [1 – localhost; 2 – the network adapter to which a public IP address is assigned (make a note of its name)]
- Enter the command:
ip address add (the IP address you want to add) dev (adapter name)ip address add 89.203.123.234 dev ens32
Upon server restart, the address will no longer be assigned! You will then need to repeat the process to reconnect.
Permanent addition of an IP address
- We log in to the system shell.
- We issue the
ip acommand to determine the configuration and available adapters [1 – localhost; 2 – the network adapter to which a public IP address is assigned (make a note of its name)]
- Edit the file /etc/network/interfaces (for example
mcedit /etc/network/interfaces) - We will add the text highlighted in the red box:

If the gateway and mask are unknown, you need to submit a support ticket, and the necessary information will be provided to you.
- Save (F2 – in the case of the mcedit editor)
- Restarting the system
reboot