Login to server.
Go to start >> run >> cmd
Type following command.
Ipconfig /all
Copy the local area connection name that you get. (Adapter name)
Edit and use following command for it.
“FOR /L %A IN (10,1,20) DO netsh interface ipv4 add address “Local Area Connection” 192.168.1.%A 255.255.255.0”
FOR /L loop to add IP’s 192.168.1.10-20 to this adapter:
replace this (10,1,20) with the starting and ending ip
like above 192.168.1.10-20 is the range to add so 10 is start and 20 is end
192.168.1.%A replace this with the range
255.255.255.0 this with subnet
You must be logged in to post a comment.