Linux : How to add IP range on RHEL/CentOS

By | July 12, 2012

If you have a full subnet to add on RHEL/CentOS Linux system, there is a short way to achieve this instead of manually create single alias interfaces.

1. Create a script at this location :

(ajust values as needed, according to the interface you would would have the IP subnet binded to an then the range number if more than one)

2. Add the following with proper values :

Here is a sample :

*The “CLONENUM_START” value is equal to the alias interface number you would start with this range. In this case, the first IP ( will be binded to “eth0:0”.