Configuring/Adding multiple ips in windows using netsh command

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:

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.

Please follow and like us:
About shk

shk is a DevOps engineer with more than 12 years of experience in different organizations. He enthusiastic about learning new technologies and shares his knowledge through his blogs.

Comment Policy:

Your words are your own, so be nice and helpful if you can. Please, only use your real name, not your business name or keywords. Using business name or keywords instead of your real name will lead to the comment being deleted. Anonymous commenting is not allowed either. Limit the amount of links submitted in your comment. We accept clean XHTML in comments, but don't overdo it please.

Tell us what you're thinking...

All comments are moderated.

* Denotes required field.

*

*

Previous Post:
Next Post: