中国著名"正版"软件网站- -| 回首页 | 2004年索引 | - -国内的几个WindowsUpdate同步更新站点

快速更改IP的批處理文件- -

                                      

摘自:[Withwolf]

http://www.jxyc.gov.cn/leida/jsj/withwolf/tb.asp?blogArId=520


@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 to: %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

- 作者: Xinsoft 2004年10月20日, 星期三 19:25 加入博采

Trackback

你可以使用这个链接引用该篇文章 http://publishblog.blogchina.com/blog/tb.b?diaryID=165964

回复

评论内容: