可以通过下面的脚本来进行添加:

起始IP:103.104.172.2
结束IP:103.104.172.128
子网掩码:255.255.255.0
网卡名称:以太网

1
for /l %i in (2,1,128) do netsh interface ip add address "以太网" 103.104.172.%i 255.255.255.0