| 你是否一直是用右键点击“本地连接”看属性,然后修改IP呢?不方便吧,用这个批处理吧
  setip.rar (282 Bytes) ,我写的,用法: setip 网卡名 IP地址 子网掩码 [网关]
 其中,网关IP地址也以不设置(当然,不设肯定是没有了:))
 
 @echo off
 if "%1" EQU "" goto message
 netsh interface ip set address name=%1 source=static addr=%2 mask=%3
 if "%4" EQU  "" goto end
 netsh interface ip set address name=%1 source=static gateway=%4 gwmetric=1
 goto end
 :message
 echo 用法:  setip 网卡名 IP地址 子网掩码 [网关]
 goto end
 :end
 
 简单解释一下吧,下载后(或把上面的拷贝到一个文本文件中,命名为setip.bat),然后把它拷贝到Windows的系统目录下。
 在命令行下(CMD)下可以输入:
 setip tap0 10.1.1.2 255.255.255.0 10.1.1.1
 来设置tap0的ip、子网掩码、网关。
 
   
 |