站群通过bat脚本批量绑定ip
发布时间:2021/1/12 17:02:53
以绑定192.168.1.192/26为例
先通过http://tool.520101.com/wangluo/ipjisuan/ 计算ip地址
获取到第一个和最后一个可用ip尾数为193和254,以及掩码255.255.255.192,并注意服务器上网络连接名称,加入以下批处理脚本保存为ip.bat运行即可。
@echo off
for /l %%a in (193,1,254) do netsh interface ip add address name="本地连接 2" addr=192.168.1.%%a mask=255.255.255.192
本文来源:
[复制链接]