源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

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

  • 时间:2021-11-16 11:29 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:windows下通过批处理快速批量更换IP方法
[u]复制代码[/u] 代码如下:
@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
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部