Tuesday, June 23, 2009

How to create a range of ip addresses on ethx.

Create a range file in /etc/sysconfig/network-scripts

E.Q.

ifcfg-eth0-range1

DEVICE=eth0
BOOTPROTO=static
HWADDR=00:04:75:D4:C8:F9
IPADDR_START=192.168.0.6
IPADDR_END=192.168.0.10
CLONENUM_START=1
NETMASK=255.255.255.0
ONBOOT=yes
TYPE=Ethernet


CLONENUM_START -- interface clone number to start using for this range. # eg "1"

Which would start at eth0:1

No comments:

Post a Comment

tag ur valuable ideas below