• العربية
  • Azerbaijani
  • Català
  • 中文
  • Hrvatski
  • Čeština
  • Dansk
  • Nederlands
  • English
  • Estonian
  • Persian
  • Français
  • Deutsch
  • עברית
  • Magyar
  • Italiano
  • Macedonian
  • Norwegian
  • Português
  • Português
  • Română
  • Русский
  • Español
  • Svenska
  • Türkçe
  • Українська
  • Account
    • Login
    • Register
    • Forgot Password?
  • FairyHosting.com
    • Services
      • My Services
      • Order New Services
      • Domains
      • DNS MANAGER
    • Payment
      • Invoices
      • Add funds
      • Mass Payment
    • Support
    • Knowledgebase
    • Affiliates

      Categories

    Hestia CP
    2
    ISPmanager
    9
    Linux Server
    25
    Plesk
    14
    Windows Server
    14
    Fairy Disk Services
    4
    Mikrotik (RouterOS)
    8
    Server management
    19
    For a new client
    13

      Categories

      Tag Cloud

    Debian Восстановление root пароля CentOS7 Linux сброс root пароля CentOS7 сервер Password recovery Root password Ubuntu

      Support

    My Support Tickets
    Knowledgebase
    Open Ticket

    How to manually set your additional IP's in Linux system — CentOS 7, Debian 9, Ubuntu 18.04. Print

    • 166

    CentOS

     

    Network file config is located /etc/sysconfig/network-scripts. Firstable need to check your using network interfaces. Follow the command:

    ip a




    In the example by default is using «eth0». Now edit network file config of this interface:

    vi /etc/sysconfig/network-scripts/ifcfg-eth0

     

    Update it as follows:

    IPADDR2=Address
    PREFIX2=Mask (example=24)
    GATEWAY2=Gateway


     

    Enter the new IP address that you want to add as IPADDR1. If this new IP is in a different subnet, enter the gateway and subnet mask as GATEWAY1 and PREFIX1.

    After save reboot the server:

    shutdown -r now


     

    Debian

     

    Network file config is located /etc/network/interfaces. Check your using network interfaces. Follow the command:

    ip a

     

    In the example by default is using «ens18». Now edit network file config of this interface:

    nano /etc/network/interfaces

     

    By default you have been see follow settings.

     

    Now to add a new IP you need to write in the end:

    auto ens18:0
    iface ens18:0 inet static
    address
    netmask


     

    After save reboot the server:

    shutdown -r now


    Ubuntu

    Network file config is located /etc/netplan/*.yaml. Check your using network interfaces. Follow the command:

    ip a

     

    In the example by default is using «ens18». Now edit network file config of this interface:

    nano /etc/netplan/*.yaml


     

    After save reboot the server:

    shutdown -r now

    Was this answer helpful?

    Related Articles

    Ioncube installation Ioncube install on Debian server.   1. Archive download from website creator wget... Upload/download internet speed check in Linux Speedtest-cli is used to check the speed of uploading and downloading in the server and it use... Update nginx on Debian 6 1. Download nginx key wget http//nginx.org/keys/nginx_signing.key 2. Add him apt key add... Ioncube PHP Loader installation Install Ioncube PHP Loader extensions via SSH client.Firstable download module for your operating... How to change SSH port Default SSH server port is 22. Open configuration file /etc/ssh/sshd_config of SSH server by...
    « Back

      Tag Cloud

    Debian Восстановление root пароля CentOS7 Linux сброс root пароля CentOS7 сервер Password recovery Root password Ubuntu

      Support

    My Support Tickets
    Knowledgebase
    Open Ticket
    • Billing
      • Services
      • Invoices
      • Support
      • Knowledgebase
    • Services
      • Virtual servers
      • Dedicated servers
      • Colocation
      • Business hosting
      • Fairy Disk
      • Routers for rent
      • SSL-Certificates
    • News
    • Company
      • About Us
      • Contacts
      • User agreement
      • Privacy policy
    • Technologies

      RJ Network OÜ
      Reg.nr 14694302
      VAT ID: EE102147829

      Narva: P. Kerese tn 5, 20309
      Tallinn: Paul Pinna 8, 13615

    Telegram Chat

    +372 6647001

    [email protected]

    Copyright © 2025 FairyHosting.com. All Rights Reserved.


    Loading...
    Loading...
    Choose language
    العربية
    Azerbaijani
    Català
    中文
    Hrvatski
    Čeština
    Dansk
    Nederlands
    English
    Estonian
    Persian
    Français
    Deutsch
    עברית
    Magyar
    Italiano
    Macedonian
    Norwegian
    Português
    Português
    Română
    Русский
    Español
    Svenska
    Türkçe
    Українська

    Generate Password

    Please enter a number between 8 and 64 for the password length