windows 2008批量增加连续ip方法

命令格式:for /l %i in (181,1,209) do  netsh interface ip add address “网卡名” 192.168.1.%i 255.255.255.0

如:for /l %i in (1,1,254) do  netsh interface ip add address “本地连接” 192.168.1.%i 255.255.255.0

ps:(1,1,254)代表增加192.168.1.1到192.168.1.254整个段

192.168.1.%i代表这个段

255.255.255.0网关

发表回复