快速更改IP的批處理文件
来源:互联网 发布:nginx rtmp分布存储 编辑:程序博客网 时间:2024/05/22 14:54
from http://bbs.yicong.com/dispbbs.asp?boardid=6&id=982
快速更改IP的批處理文件
程序代码:
@echo off
rem eth //eth 为网卡名称,可在网络链接中查询,如"本地链接"
set eth="Local Area Connection"
rem ip //ip 为你想更改的IP
set ip=192.168.0.50
rem gw //gw 为网关地址
set gw=192.168.0.1
rem netmasks //netmasks 为子网掩码
set netmasks=255.255.255.0
echo Change IP Address t %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 Check Current IP Address:
ipconfig
echo.
close
@echo off
rem eth //eth 为网卡名称,可在网络链接中查询,如"本地链接"
set eth="Local Area Connection"
rem ip //ip 为你想更改的IP
set ip=192.168.0.50
rem gw //gw 为网关地址
set gw=192.168.0.1
rem netmasks //netmasks 为子网掩码
set netmasks=255.255.255.0
echo Change IP Address t %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 Check Current IP Address:
ipconfig
echo.
close
- 快速更改IP的批處理文件
- 快速更改IP
- 网络管理,更改host文件,实现准确的IP对应
- 用批处理快速更改IP地址
- 更改ip地址的命令
- 更改IP后的问题
- 更改WIFI的IP段
- 使用bat文件更改IP地址
- IP的快速查找
- 更改IP
- 更改Eclipse中js文件的编辑方式,从而可以利用ctrl键快速定位方法
- Linux更改主机名和更改对应的域ip
- 更改Win 2003网络适配器的IP地址
- 更改Solaris 10的IP地址
- 更改CX4-120控制器的ip地址
- vc 更改有关Ip的信息
- 永久的更改solaris IP 地址
- windows 系统更改自己的ip地址
- ASP最新SQL防注入过滤函数
- Asp.net与SQL一起打包部署安装
- .NET的序列化简介-
- VC++,掀起你的盖头来
- windows2003中IIS6的session以及application在iframe中丢失问题的解决方案
- 快速更改IP的批處理文件
- Hibernate代码里在何处开始读取数据
- Unit测试技巧:如何手动设置待测试Bean的属性
- 用基于XML的即时消息开发Jabber
- 如风般逝去
- 在VS2005开发环境中自动完成接口的所有成员
- AppFuse1.9.1
- IP地址更改助手
- [分享]千万数量级分页存储过程(效果演示)