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 Connection" 192.168.0.%I 255.255.255.0

Published by

Mick Genie

Mick Genie is the founder of MickGenie.com and working at ExaBytes Network Sdn Bhd and WPWebHost web host company. He is expertise in Windows and Linux environment especially web hosting related information, tips and trick as well as the IT Information.