Add the bulk IPs on linux using perl script
To add the bulk IP subnet's (/22,/21) on linux server using below perl script very easy
Example subnet : 192.168.2.0/22
192.168.8.0/24
192.168.9.0/24
192.168.10.0/24
192.168.11.0/24
perl -e 'my $cntr= 101; for $o3(8 .. 11){for $o4(1 .. 254){ `ifconfig eth0:$cntr 192.168.$o3.$o4 netmask 255.255.255.0`;$cntr++}}'
No comments:
Post a Comment