Home Guides Glossary

Adding IP Addresses to Your Linux Server (Traditional)

WARNING: We have multiple configuration methods for our servers' networking. To make sure you use the correct procedure when configuring additional IPs on your server, please see Add more IP Addresses.

Some of the information in this article is advanced material we make available as a courtesy. Please be advised that you are responsible for properly following the procedures below. Customer Support cannot assist with these topics.

When you receive additional IPs for your server, you have to configure your server to accept requests from them. The process to add IP addresses to your server depends on your control panel or operating system.

We automatically configure additional IP addresses for Virtual Private Servers (VPS).

Parallels Plesk Panel 9

  1. Log in to Plesk as admin.
  2. Click IP Addresses.
  3. From the Tools section, click Add IP Address.
  4. In the IP address and subnet mask field, enter the IP address you want to add followed by /255.255.255.0. For example, if the new IP is "192.168.0.1" you would enter "192.168.0.1/255.255.255.0".
  5. From the IP address distributed as menu, select Shared.
  6. Click OK.
  7. If you use Client accounts, you must add the new IP to the client's IP pool before they can use it for their domains.

Parallels Small Business Panel

  1. Log in to the Parallels Small Business Panel as admin.
  2. Go to the Settings tab.
  3. Click Advanced Settings.
  4. Click IP Addresses.
  5. From the Tools section, click IP Address.
  6. In the IP address and subnet mask field, enter the IP address you are adding followed by /255.255.255.0. For example, if the new IP is "192.168.0.1" you would type 192.168.0.1/255.255.255.0 .
  7. From the IP address distributed as menu, select Shared.
  8. Click OK.

cPanel

  1. Log in to cPanel Web Host Manager (WHM) as root.
  2. Click IP Functions.
  3. Click Rebuild the IP Address Pool.
  4. Click Proceed.
If this does not detect the additional IP addresses:
  1. Log in to cPanel Web Host Manager (WHM) as root.
  2. Click IP Functions.
  3. Click Add a New IP Address.
  4. In the Ips to add field, enter the new IP address, ensure the subnet mask is set to 255.255.255.0, and then click Submit.

Fedora/CentOS/Redhat with No Control Panel and Simple Control Panel

  1. Connect to your server via SSH (more info).
  2. Switch to the root user (more info).
  3. Run
    cd /etc/sysconfig/network-scripts/
    to switch to the folder where the network configuration scripts are located.
  4. Run
    ls ifcfg*
    to view the current network adapters.

    Your server's primary IP displays as "ifcfg-eth0" and "ifcfg-lo" and additional IPs display as "ifcfg-eth0:0", "ifcfg-eth0:1", etc.
  5. Run
    cp ifcfg-eth0 ifcfg-eth0:X
    where X is two digits less than the number of IPs the server currently will have after adding the new IP. For example, to add the server's third IP address, run cp ifcfg-eth0 ifcfg-eth0:1 .
  6. Run
    vi ifcfg-eth0:X
    where X is the same value as the previous step, to edit the configuration file.
  7. Change the "IPADDR" value to the new IP address and the "DEVICE" value to eth0:X where X is the value from the previous steps.
  8. Save the file and exit the editor.
  9. Run
    /etc/init.d/network restart
    to restart the network service so that it recognizes the new IP.

Ubuntu with No Control Panel

  1. Connect to your server via SSH (more info).
  2. Switch to the root user (more info).
  3. Run
    vi /etc/network/interfaces
    to edit the network configuration file.

    Your server's primary IP displays as "eth0" and additional IPs display as "eth0:0", "eth0:1", etc.
  4. Review the listing for "eth0" to determine the netmask and gateway IP for your server.
  5. Add the following to the bottom of this file, replacing the fields in brackets with the appropriate values:
    auto [interface name]

    iface [interface name] inet static
    address [IP address]
    netmask [netmask]
    gateway [gateway IP]
    For example:
    auto eth0:0

    iface eth0:0 inet static
    address 192.168.0.1
    netmask 255.255.255.0
    gateway 192.168.0.254
  6. Save the file and exit the editor.
  7. Run
    /etc/init.d/networking restart
    to restart the network service so that it recognizes the new IP.

Domain Registration

Pay less for website domain names. Register your own .com, .net or .org for as low as $10.18 per year. We have everything you need to get online with your new domain.

Website Builder

Build an amazing website in just under an hour with Website Builder. Take advantage of designs created just for your industry and then customize them to reflect your one-of-a-kind idea.

Website Security

Protect your website and keep customers safe. Your comprehensive Website Security solution. Get peace of mind by securing your websites.

cPanel Hosting

Everything needed to give your website the high-performance home it deserves.  Protect transactions and secure your customer's data with a SSL Certificate
Copyright © 2005 - 2024.  All rights reserved.  Privacy Policy