Skip to main content

Linux – Configuring an Additional IP Address

Requirements

  • Operating system: Debian 13, Ubuntu 26.xx
  • SSH access with highest privileges (root)

Temporary IP address assignment

  1. We log in to the system shell.
    How do I connect?

    You can connect to the shell using, for example, SSH.

  2. We issue the ip a command 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)]
    totermw_2019-03-05_14-38-15.png
  3. Enter the command: ip address add (the IP address you want to add) dev (adapter name)
    Command example

    ip address add 89.203.123.234 dev ens32

    Watch out for a system restart

    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

  1. We log in to the system shell.
  2. We issue the ip a command 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)]
    totermw_2019-03-05_14-38-15.png
  3. Edit the file /etc/network/interfaces (for example mcedit /etc/network/interfaces)
  4. We will add the text highlighted in the red box:
    totermw_2019-03-05_14-52-18.png
    Network Configuration

    If the gateway and mask are unknown, you need to submit a support ticket, and the necessary information will be provided to you.

  5. Save (F2 – in the case of the mcedit editor)
  6. Restarting the system reboot