CentOS: Alias IP Ranges

VMware Virtual Machine Hosting

cd /etc/sysconfig/network-scripts

Quick and easy range of ips:

Add this file: ifcfg-eth0-range0

Contents:

IPADDR_START= 11.xxx.xxx.xxx
IPADDR_END= 11.xxx.xxx.xxx
CLONENUM_START=0

If you want to add another range:

Add this file: ifcfg-eth0-range1

IPADDR_START=10.xxx.xxx.xxx
IPADDR_END=10.xxx.xxx.xxx
CLONENUM_START=11

Pay close attention to CLONENUM_START. In the second range it must be a number higher than the amount of IPs adding in range0. For instance, lets say your range was: 10.10.10.1 -thru-> 10.10.10.10. That is 10 IPs, so your CLONENUM-START would be 11 in the second range file.

VMware Virtual Machine Hosting