标签 netsh 下的文章

Windows 2003服务器使用netsh命令批量添加IP地址

添加单个IP地址192.168.1.2

netsh interface ip add address “本地连接” 192.168.1.2 255.255.255.0

添加一段IP地址192.168.1.10到192.168.1.20

for /l %i in (10,1,20) do netsh interface ip add address "本地连接 2" 192.168.1.%i 255.255.255.0

添加一个整个24位的网段192.168.1.0/24(192.168.1.1到192.168.1.254)

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