This article will go over how to bind IP addresses that were assigned and routed to your server. This applies only to Cloud and Dedicated accounts.
- SSH into the server. If you are not sure how to SSH,
- Change the directory to /etc/sysconfig/network-scripts
- Create a file for the new range; use the next range number or 0 if no new ranges have been added to the server yet.
- Check ifconfig for the next clonenum. The clonenum is the number after the colon, the clonenum we will use is the next largest number in the series. In this case it will be 6.
- Edit the range* file using the next clonenum as CLONENUM_START. The other information should have been provided to you.
- Restart the network.
- Ping the first and last IP addresses and they should work (unless a firewall is blocking those IP's). Otherwise if they do not, changes are the clonenum or netmask was entered incorrectly.
[root@server network-scripts]# ls -la ifcfg-eth0-range*
ls: ifcfg-eth0-range*: No such file or directory
[root@server network-scripts]# touch ifcfg-eth0-range0
[root@server network-scripts]# ifconfig | grep "eth0:"
eth0:1 Link encap:Ethernet HWaddr 00:30:48:8F:77:02
eth0:2 Link encap:Ethernet HWaddr 00:30:48:8F:77:02
eth0:3 Link encap:Ethernet HWaddr 00:30:48:8F:77:02
eth0:4 Link encap:Ethernet HWaddr 00:30:48:8F:77:02
eth0:5 Link encap:Ethernet HWaddr 00:30:48:8F:77:02
[root@server network-scripts]# cat ifcfg-eth0-range0
IPADDR_START=xxx..xxx.xxx.xxx
IPADDR_END=yyy.yyy.yyy.yyy
NETMASK=255.255.255.zzz
CLONENUM_START=6
[root@server network-scripts]# /etc/init.d/network restart
Shutting down interface eth0: [ OK ]
Shutting down loopback interface: [ OK ]
Setting network parameters: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: [ OK ]