Configuring/Adding multiple ips in windows using netsh command | MyLiteratureTechLife.COM

Configuring/Adding multiple ips in windows using netsh command

March 15th, 2010 0 Comments






















If you ever wanted to add 200 ip addresses to Windows Server with one command instead of manually configure it on the interface? Netsh will help you to save time.

You can use this quick batch command in cmd:

FOR /L %I IN (2,1,254) DO netsh interface ip add address "Local Area Connection" 10.0.0.%I 255.255.255.0

This example will add ip addresses from 10.0.0.2 to 10.0.0.254 with 1 step each time.

You can play with this example and change the place of %I to say add ip addresses from 10.0.1.1 to 10.0.200.1 and so on.

Do not forget to change the name of the interface ( “Local Area Connection” ) to the exact name of the interface you would like to use.

Related posts:

  1. My review on Safari for windows
  2. Is command line really so bad??
  3. Installing & configuring shorewall firewall in Ubuntu/Debian
 

If You Like This Post, Share it With Your Friends & Peers

Digg
stumbleupon
Delicious
facebook
twitter
reddit
rss feed bookmar
 

No Comment to “Configuring/Adding multiple ips in windows using netsh command”

  1. No Comment yet. Be the first to comment...

Leave your comment here:

*

Alexa Rank