Add List of IP's


Assuming ip's are in iplist..

j=1
for i in `cat iplist | cut -d\; -f1`; do ifconfig eth0:$j $i netmask 255.255.255.255 up; j=$(($j+1)); done

  Tags:

Looking for great online sysadmin training in Linux, Security & Hacking and many others?

Back