This form logs you into your management portal account. To access your help desk account, click here and use the form to the right of the news.
Adding Secondary IPs
Posted by - NA -, Last modified by Ben Galliart on 06 May 2013 02:25 PM
|
|
Please note: We recommend against adding IP addresses using your hosting control panel due to a number of possible issues this may cause. Instead, please try to use the methods indicated below.
Activating IPv4 addresses varies by operating system. 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 OS documentation for instructions on configuring IP aliases. We cannot provide IP configuration support for unsupported operating systems. If you are experiencing difficulty for any reason, please open a new ticket with the IPs department, and include the information necessary to log into your server remotely. We'll be happy to assist you in adding the addresses to your server. In the sections below, replace the bracketed text (remove the brackets) with the information provided above. The subnet mask should always be entered as 255.255.255.255 for IPv4 aliases. Using other netmasks may cause some of the addresses to be unusable or interfere with communication to other servers. CentOS, Fedora, Red Hat Linux, and variantsCreate a new file at /etc/sysconfig/network-scripts/ifcfg-eth0-range:1. If this file exists, please use the next available number after the colon (such as ifcfg-eth0-range:2). nano /etc/sysconfig/network-scripts/ifcfg-eth0-range:1
Insert the following lines into the file: IPADDR_START=[Start IP]
CLONENUM_START indicates the alias number to start with, so if you already have IP aliases on your server, you will need to increase it to the next available alias number. To find the currently active alias numbers, run the command "ifconfig | grep eth.:" which will list all current aliases in use in a form similar to "eth0:X" where "X" is the alias number. If the command does not output anything, you have no active aliases currently and can safely use the number 1. 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/network restart
Debian, Ubuntu, and variantsEdit 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
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
FreeBSDEdit 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 this line, insert the following. Substitute "fxp0" with the interface name that was in the line above: ifconfig_fxp0_alias0="inet [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
Windows 2003
Windows 2008
If you have any problems with any procedures in this article, please feel free to contact support. | |
|