Bind an IP Address Range

Marius Ducea’s blog has a great post about how to quickly setup a range of IP addresses in Linux:

Create a file /etc/sysconfig/network-scripts/ifcfg-eth0-range0 if this doesnÂ’t exist, or just add to it if you already have it, the following lines:

/etc/sysconfig/network-scripts/ifcfg-eth0-range0
IPADDR_START=192.168.0.100
IPADDR_END=192.168.0.200
CLONENUM_START=0

where: IPADDR_START is the first IP and IPADDR_END is the last IP in the range. CLONENUM_START is the number that will be assigned to the first IP alias interface (eth0:0 in this example).

If you need to add more ranges of IPs then just use a different file for ex. ifcfg-eth0-range1, for each one of the ranges.