Add multiple IPs to Windows Server

Imagine you have 20 IPs to add to your Windows Server and it is not an easy job to add them one by one.

To easily add them to the Windows server, you may use the following command format to add them.

netsh interface ip add address "Local Area Connection" 192.168.1.2 255.255.255.0

To add IP from 192.168.0.2 to 192.168.0.21, you may use the following command,

FOR /L %I IN (2,1,21) DO netsh interface ip add address "Local Area 

Advertisements
  1. Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: