Portal Home > Knowledgebase > Support > How can I add the additional IPs for my server?


How can I add the additional IPs for my server?




The procedure for adding new IPs to your server varies depending on your operating system choice. Please find the section below for the operating system installed on your server and follow the directions carefully to ensure the IPs are properly configured. If your operating system is not listed here, you will need to consult your the OS documentation for instructions on configuring IP aliases. We cannot provide IP configuration support for unsupported operating systems.

===================================================================================
RedHat-based Linux (CentOS, Fedora)
===================================================================================

Create a new file at /etc/sysconfig/network-scripts/ifcfg-eth0-range:1. If this file exists, please use the next available number.

nano /etc/sysconfig/network-scripts/ifcfg-eth0-range:1

Copy and place the following lines into the file:

IPADDR_START=
IPADDR_END=
CLONENUM_START=1
NETMASK=255.255.255.255

If you used an alternate number in the previous step, you will need to use the next available IP clone number. You can find the list of used ones by typing "ifconfig" at the system prompt. If you already have extra IPs, increase the CLONENUM_START value by the number of added IPs you already have.


Save the file by pressing Ctrl+X, hitting Y to confirm, and Enter to save. Then restart the network:

/etc/init.d/network restart

You should now be able to ping your IPs. If you cannot, please open a new ticket with the IP/Network Department, including the main IP of your server, the IP addresses you are trying to add, and the information necessary to log into your server remotely.

===================================================================================
Debian or Ubuntu Linux
===================================================================================

Edit the network interfaces configuration file:

nano /etc/network/interfaces

 

Look for your "iface eth0" line. If the previous line says "allow-hotplug eth0", change it to read "auto eth0" instead. If you leave "allow-hotplug" in the file, the interface may not come back up correctly when you reload the configuration. If "allow-hotplug" is not present, you do not need to do anything else to this part of the file.

Add the following lines at the end of the file. Replace "x" with the next unused number (starting at 0):

auto eth0:x
iface eth0:x inet static
address [IP ADDRESS]
netmask 255.255.255.255


For each IP address in your range, insert another set of lines, incrementing the value of X. You may include as many addresses as you like.

Save the file by pressing Ctrl+X, hitting Y to confirm, and Enter to save. Now run the following command to apply the configuration:

/etc/init.d/networking restart

You should now be able to ping your IPs. If you cannot, please open a new ticket with the IP/Network Department, including the main IP of your server, the IP addresses you are trying to add, and the information necessary to log into your server remotely.

===================================================================================
FreeBSD
===================================================================================

Open your /etc/rc.conf file.

ee /etc/rc.conf

Find a line that looks similar to:

ifconfig_fxp0="inet 1.2.3.4 netmask 255.255.255.252"

Below that, place the following entries. Substitute fxp0 with the interface name that was in the line above:

ifconfig_fxp0_alias0="inet [IP Address] netmask 255.255.255.255"


You may include as many lines as you like, but for each additional line, increment the number after "alias" (such as "alias1", "alias2"). If you have 8 IPs, they should be numbered 0-7.

Now run the following command to apply the configuration:

/etc/rc.d/netif restart && /etc/rc.d/routing restart

You should now be able to ping your IPs. If you cannot, please open a new ticket with the IP/Network Department, including the main IP of your server, the IP addresses you are trying to add, and the information necessary to log into your server remotely.

===================================================================================
Windows Server 2003/2008 (Web and Standard)
===================================================================================

 

1. Right-click on the Network Adapter, select Properties.

 

2. Select Internet Protocol (TCP/IP) and click Properties.

3. Click Advanced.

4. Click Add then enter the IPs that you were assigned individually, using a subnet mask of 255.255.255.255.

5. Click Add.

If you wish to add more IP addresses, repeat steps 4. and 5. until you have added the IP addresses we assigned to you.


You should now be able to ping your IPs. If you cannot, please open a new ticket with the IP/Network Department, including the main IP of your server, the IP addresses you are trying to add, and the information necessary to log into your server remotely.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read