windows服务器如何用命令批量绑定多IP

258IP

KT站群服务器 258IP 100M独享 不限流量 月付1200元,有很多网友,买了KT的258多IP,站群服务器,不会绑定多IP,老易参考网上教程,亲自绑定了下,实测可用。如何Windows 2003批量绑定IP地址?如何在windows 2003批量添加IP地址?一行DOS命令快速设置29/61/255个IP地址。你要做的就是批量设置IP的修改命令(如下),运行cmd命令打开dos窗口,然后粘贴命令,回车即可:

for /l %i in (其实数字,1,结束数字) do netsh interface ip add address “本地连接” IP前缀.%i 子网掩码

真实范例:

Standard Network Master IP Assignment 67.43.146.120/29
Gateway 67.43.146.121
Broadcast Address 67.43.146.127
Usable Address 67.43.146.122 – 67.43.146.126[可用5IP]
Subnet Mask 255.255.255.248

DOS命令:
for /l %i in (123,1,126) do netsh interface ip add address “本地连接” 67.43.146.%i 255.255.255.248

/24 Additional Standard Network IPs 67.229.99.0/24
Gateway 67.229.99.1
Broadcast Address 67.229.99.255
Usable Address 67.229.99.2 – 67.229.99.254[253可用IP]
Subnet Mask 255.255.255.0

DOS命令:
for /l %i in (2,1,254) do netsh interface ip add address “本地连接” 67.229.99.%i 255.255.255.0

发表评论

电子邮件地址不会被公开。 必填项已用*标注