批处理设置ip和dns
批处理设置ip和dns 静态IP
@echooff
color0a
ECHO*****************************************************************
ECHO设置IP地址为公司路由模式
ECHOCopyright(C)2007-2008
ECHO*****************************************************************
ECHO.
netshinterfaceipv4setaddressname="本地连接"source=staticaddr=192.168.1.2mask=255.255.255.0gateway=192.168.1.1gwmetric=0
echoIP,子网掩码,网关设置完成
netshinterfaceipv4setdnsname="本地连接"source=staticaddr=221.136.0.1register=PRIMARY
echoDNS1设置完成........
netshinterfaceipv4adddnsname="本地连接"addr=192.168.0.253
echoDNS2设置完成........
netshinterfaceipv4adddnsname="本地连接"addr=203.175.200.202
echoDNS2设置完成........
netshinterfaceipv4setwinsname="本地连接"source=staticaddr=none
echo设置IP地址为公司路由模式完成!
echo.
ipconfig/all
pause
close
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
@echooff
color0a
ECHO.
ECHO*****************************************************************
ECHO设置IP地址为家庭路由模式
ECHOCopyright(C)2007-2008
ECHO*****************************************************************
netshinterfaceipv4setaddressname="本地连接"source=staticaddr=192.168.1.3mask=255.255.255.0gateway=192.168.1.1gwmetric=0
echoIP,子网掩码,网关设置完成
netshinterfaceipv4setdnsname="本地连接"source=staticaddr=221.136.0.1register=PRIMARY
echoDNS1设置完成........
netshinterfaceipv4adddnsname="本地连接"addr=192.168.1.1
echoDNS2设置完成........
netshinterfaceipv4adddnsname="本地连接"addr=203.175.200.202
echoDNS2设置完成........
netshinterfaceipv4setwinsname="本地连接"source=staticaddr=none
echo设置IP地址为家庭路由模式完成!
echo.
ipconfig/all
pause
close
相关推荐
<?php. if (!empty($_POST)) {. $data1 = $_POST["data1"];$data2 = $_POST["data2"];$fuhao = $_POST["fuh