×
×

Adding multiple IP addresses to Windows servers

Back

Binding Multiple IP Addresses on Windows Servers (the easy way)

Forget adding multiple IP addresses to Windows servers one-by-one, instead try this simple method using 'netsh'We will be using a FOR /L loop to run the 'netsh' command automatically for us -

FOR /L %variable IN (start,step,end) DO command

This way, we can loop through a range of IP addresses (providing you have contiguous IP addresses) like this -
FOR /L %A IN (0,1,255) DO netsh interface ipv4 add address “Local Area Connection” 192.168.1.%A 255.255.255.0 
For Windows 2003 servers, use the term "ip" instead of "ipv4" as listed in the sample code above.