Back to Dedicated Servers

How To Add An IP To An Unmanaged Dedicated Server


This guide is only specific to CentOS servers. The general steps are the same, but if you are running another Linux distro you will need to use commands and file paths specific to your environment.

Servers with the cPanel addon

Request an IP

       1. Log into cp.westhost.com
       2. Click on 'Dedicated Servers' in the 'Manage' slide-out menu.
       3. Click on the top tab called 'Server Administration'.
       4. Click on the left tab called 'Network'.
       5. Scroll down to the 'Additional IP Addresses' section.
       6. Click the 'Request additional IP address' button.

Add the IP to WHM

        1. Log into WHM on the unmanaged ded
        2. Navigate to the 'Add a New IP Address' page.
        3. Enter the IP you requested earlier into the 'IP (s) to add' field.
        4. Netmask 255.255.255.0 should work fine.
        5. Click submit.

Servers Not running cPanel

Request an IP

       1. Log into cp.westhost.com
       2. Click on 'Dedicated Servers' in the 'Manage' slide-out menu.
       3. Click on the top tab called 'Server Administration'.
       4. Click on the left tab called 'Network'.
       5. Scroll down to the 'Additional IP Addresses' section.
       6. Click the 'Request additional IP address' button.

Manually configure the IP

       1. SSH into the unmanaged ded server.
       2. Create an alias file on the public interface. For example, the first alias would be either eth0:0 or eth1:0.
            # vim /etc/sysconfig/network-scripts/ifcfg-eth1:0
       3. Populate the file. Here is an example. Be sure to change the values appropriately.

DEVICE=eth1:0
IPADDR=192.168.1.7
NETMASK=255.255.255.0
NETWORK=192.168.1.0
ONBOOT=yes
NAME=eth1:0


      4. Raise the new IP interface
        # service network restart
      5. Make sure you can see the IP displayed in ifconfig
        # ifconfig -a



Related Articles

System Tools Section
The Miscellaneous Tools
Tips For Using An Unmanaged Dedicated Server
DNS Information For Unmanaged Dedicated Servers
How To Install An SSL On An Unmanaged Server cPanel

Can’t Find what you need?

No worries, Our experts are here to help.