Question

I'm setting up our new Dev server, what is the easiest way to assign multiple IP addresses to Windows 2008 Server Network Adapter?

I'm setting up our development machine, running IIS 7 and want to have the range between 192.168.1.200 - .254 available when I'm setting up a new website in IIS 7.

Was it helpful?

Solution

The complete CMD.EXE loop:

FOR /L %b IN (200,1,254) DO netsh interface ip add address "your_adapter" 192.168.1.%b 255.255.255.0

In the code above, replace "your_adapter" with the actual interface name (usually "Local Area Connection"). In addition, the netmask at the end is an assumption of /24 or Class C subnet; substitute the correct netmask.

OTHER TIPS

> netsh interface ipv4 add address "Local Area Connection" 192.168.1.201 255.255.255.0

Wrap in a cmd.exe "for" loop to add multiple IPs.

EDIT: (from Brian) "Local Area Connection" above is a placeholder, make sure you use the actual network adapter name on your system.

Network Connections -> Local Area Network Connection Properties -> TCP/IP Properties -> Advanced -> IP Settings -> Add Button.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top