type this in start >> Run >> cmd.
FOR /L %I IN (2,1,254) DO netsh interface ip add address "Local Area Connection" 10.0.0.%I 255.255.255.0
This will add ips from 10.0.0.2 to 10.0.0.254
This example will add ip addresses from 10.0.0.2 to 10.0.0.254 with 1 step each time.
Terms Explained
--------------------
FOR /L %I IN (2,1,254)
2 -> First IP of the range
1 -> 1 Step.
254 -> Final IP of range.
Local Area Connection -> Connection Name.
255.255.255.0 -> Netmask
No comments:
Post a Comment