您的位置
主页 > 网站技术 > 相关技巧 > » 正文

windows下通过批处理快速批量更换IP方法

来源: 站长圈 点击:

windows快速批处理更换IP方法适合于经常更换IP或者配置大量服务器IP,平时基本手动配置就好了,这里仅供大姐学习交流,windows快速批处理更换IP代码如下
复制代码 代码如下:

@echo off
rem eth //eth 为网卡名称,可在网络连接中查询,如”本地链接”
set eth=”无线网络连接”
rem ip //ip 为你想更改的IP
set ip=192.168.1.8
rem gw //gw 为网关地址
set gw=192.168.1.1
rem netmasks //netmasks 为子网掩码
set netmasks=255.255.255.0
echo 正在将本机IP更改到: %ip%
rem
if %gw%==none netsh interface ip set address %eth% static %ip% %netmasks% %gw% > nul
if not %gw%==none netsh interface ip set address %eth% static %ip% %netmasks% %gw% 1 > nul
echo…………………….
echo 检查当前本机IP:
ipconfig
echo…………………….
echo 成功将本机IP更改为%ip%!
pause
close




首页  - 关于站长圈  - 广告服务  - 联系我们  - 关于站长圈  - 网站地图  - 版权声明