Windows 2008 批量添加IP的方法

FOR /L %i IN (120,1,149) DO netsh interface ip add address “本地连接” 192.168.1.%i 255.255.255.0

弄个bat批量执行就OK了

(120,1,149)表示从192.168.1.120到192.168.1.149,以 1 为单位递增的IP段,所有IP都加入到网卡里面。

Leave a Reply

Your email address will not be published. Required fields are marked *