修改为固定IP
@echo off
echo Chang Local IP To: "Static" Plz Stand By wait!!!! :-)
rem 修改IP地址、子网掩码、网关
cmd /c netsh interface ip set address 本地连接 static 192.168.0.253 255.255.255.0 192.168.0.1 1
cmd /c netsh interface ip set dns "本地连接" static 192.168.0.1 primary
echo.........................
echo Check Local IP:
ipconfig/all
echo.........................
echo We have changed IP!
echo Written By:cuplinux
echo 2007-04-11
pause
close
修改为DHCP,动态分配
@echo off
echo Chang Local IP To: "DHCP" Plz Stand By wait!!!! :-)
rem 修改IP地址、子网掩码、网关
cmd /c netsh interface ip set address name="本地连接" source=dhcp
cmd /c netsh interface ip set dns name="本地连接" source=dhcp
echo.........................
echo Check Local IP:
ipconfig
echo.........................
echo We have changed IP!
echo Written By:cuplinux
echo 2007-04-11
pause
close
阅读(5450) | 评论(0) | 转发(0) |