Friday, March 25, 2011

How to create or bind a range of IP address to a redhat or centos linux system


Suppose you have a server with IP with OS rhel5

And you want to bind 10 IPs starting from to

All you have to do is create the following file and add these four lines.

[root@server ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0-range0

[root@server ~]#

IPADDR_START is the starting IP in the range.
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).

No comments:

Post a Comment

Be nice. That's all.