Add IP Range


Add a range of IP numbers to a centos/redhat server.

Create a file like so..

/etc/sysconfig/network-scripts/ifcfg-eth0-range0

Change the 0 on the end to 1 or whatever if another already exists.

Enter the ip range details like so..

IPADDR_START=192.168.10.2
IPADDR_END=192.168.10.62
CLONENUM_START=1
NETMASK=255.255.255.192

Save the file and restart networking..

service network reload

Note: CLONENUM_START is the number of the virtual interface to start from. You can see what is currently used by running ifconfig then just increment the last eth0:x number by one in the file above.

  Tags:

Looking for great online sysadmin training in Linux, Security & Hacking and many others?

Back