Linux Dedicated server:Manually bind IP address range

Posted: March 21st, 2009 under Dedicated Server Hosting, Linux Dedicated server, dedicated servers.
Tags: , ,

Following are some steps which are to be followed if you want to bind IP address range manually on your Dedicated web server Hosting.

1. First, login to the server via SSH :

Code :

root@server [~]# cd /etc/sysconfig/network-scripts/

2. Then, Create a blank file ifcfg-eth0-range0 and edit :

Code :

[root@server network-scripts]# vi ifcfg-eth0-range0

3. Here IP range starts from 192.168.5.10 upto 192.168.5.30 .
Add following lines in ifcfg-eth0-range0 :

Code :

IPADDR_START=192.168.5.10
IPADDR_END=192.168.5.30
CLONENUM_START=1

IPADDR_START >> starting IP address
IPADDR_END >> ending IP address
CLONENUM_START >> will create interfaces such as eth0:0, eth0:1, eth0:2 etc …

4. As we have done some changes with the network-scripts directory,The following commands should be executed so that the changes are applied and the IP range is activated

Code :

root@server [~]# /etc/init.d/network restart

5. Now you can verify the IP address range has been added on the server with the command :

root@server [~]# ifconfig

[Post to Twitter] Tweet This

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment