| There are several options, two step-by-step are included here. With a control panel, it may be as simple as hitting two buttons. You can add IPs by hand in either of two ways, if you have a contiguous block:
Individually by creating a file for each, based on /etc/sysconfig/network-scripts/eth0 as follows: cd /etc/sysconfig/network-scripts cp ifcfg-eth0 ifcfg-eth0:0 pico eth0:0 change DEVICE from eth0 to eth0:0 in the first line...VERY IMPORTANT, change IPADDR from your main to the next IP up, if your main IP was 123.123.123.123 then the next one is 123.123.123.124. Don't forget to save your work.Type ifup eth0:0 to activate it. Then for next ip cp ifcfg-eth0 ifcfg-eth0:1 (for a block of 8 IPs you'll create eth0:0, eth0:1 eth0:2, and eth0:3 to set up all five usable) follow the same steps.
Or, there is an easier solution than adding a new file for each IP. In /etc/sysconfig/network-scripts/ create a file called ifcfg-eth0-range0 and add the following: IPADDR_START=123.123.123.124 (Use the next IP up from your main IP here NOT 123.123.123.123!) IPADDR_END=123.123.123.127 (add four to your main IP for a block of eight / five inclusive IPs, your main is already set up when we release the server to you) CLONENUM_START=0 NETMASK="255.255.255.248" onBOOT="yes" Change the values of IPADDR_START and IPADDR_END to match ONLY THE ADDITIONAL IP's (do not include the one you already have) Change NETMASK as appropriate, look at the file eth0 for reference.This example sets up four additional IPs, on top of a main IP of 123.123.123.123. DO NOT use this example IP, use the info sent in your welcome email. Restart your network: /etc/rc.d/init.d/network restart
We maintain 24/7 tech support staff in case you lose connectivity to your server.
|
Add to Favourites
Print this Article
|