applepay 2011-10-31
批处理设置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
test-f /etc/resolv.conf &&echo"File /etc/resolv.conf found."||echo"File /etc/resolv.conf not found."