window 批量添加IP

  • 459

for /l %i in (开头IP,1,结束IP) do netsh interface ip add address "本地连接 1" 174.139.111.%i 255.255.255.248

 

例如添加174.139.111.1  到174.139.111.100  


for /l %i in (1,1,100) do netsh interface ip add address "本地连接 1" 174.139.111.%i 255.255.255.248  
        (开始ip,1,结束ip)                                               "网卡名"           IP段                                子网


Was this answer helpful?

Support Client Area