精品文档windows7 cmd命令改变IP地址、 DNS和代理设置
改变IP地址设置
@echo off netsh interface ipv4 set address "无线网络连接" static 192.168.100.200 255.255.255.0
192.168.100.1netsh interface ipv4 set dns name="无线网络连接" source=static addr=8.8.4.4netsh interfac e ipv4 add dns name="无线网络连接"addr=61.177.7.1 index=2echo ------------------------------------------------------------------------------echo ---------------------------------------------------------------------------------echo -----------------------------
改为DHPC 自动获取设置
@echo offf netsh interface ipv4 set address name="无线网络连接" source=dhcp netsh interface ipv4 set dns name="无线网络连接" source=dhcp echo ------------------------------
开启IE代理服务器设置
@echo off title 自动设置代理服务器echo正在设置代理服务器„„reg add"HKCUSoftwareMicros oftWindow sCurrentVersionInternet Settings" /v ProxyEnable/t REG_DWORD/d 1 /f
reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settings" /v ProxyServer /d"192.168.100.100:808" /f reg add"HKCUSoftwareMicrosoftWindow sCurrentVersionInternet Settings" /v ProxyOverride /t REG_SZ/d"" /f
echo正在刷新设置„„ipconfig/flushdns
精品文档
精品文档
关闭IE代理服务器设置:
@echo off title 自动清除IE代理echo正在清空代理服务器设置„„reg add"HKCUSoftwareMicros oftWindow sCurrentVersionInternet Settings" /v ProxyEnable/t REG_DWO RD/d 0/f
reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settings" /v ProxyServer /d"" /f reg add"HKCUSoftwareMicros oftWindow sCurrentVersionInternet Settings" /v ProxyOverride /t REG_SZ/d 0/f
echo代理服务器设置已经清空echo正在刷新设置„„ipconfig/flushdns
批处理自动选择网络设置全文
注复制到记事本文件中别存为后缀改为”.bat”文件。在win7系统中运行时会提示 “请求的操作需要提升为<作为管理员运行>”只需要在此bat文件上右击“以管理员身份运行”即可。
全文如下
@echo off color 1f title windows 7多网络环境自动切换管理echo.echo ********************************************echo *** windows 7双网络环寺自动切换管理 ***echo *** 作者王明洪MSN:kswmh@hotmail.com ***echo ********************************************echo *** 设置IP参数,设置IE代理 ***echo.echo.goto me nus
:me nus echo.echo请选择:echo.echo 1切换到家庭代理网络echo.echo 2切换到学校自动获取IP地址网络。echo.
精品文档
精品文档echo 3放弃设备退出echo.set/p select=请输入菜单对应数字后回车:if/i "%se le ct%"=="1"goto home if/i "%select%"=="2"goto school if/i "%select%"=="3"exit goto me nus
:ho me cls netsh interface ip reset "无线网络连接"echo设置IP. . .设置网关. . . . .设置子网netsh interface ipv4 set address "无线网络连接" static 192.168.100.200
255.255.255.0192.168.100.1echo设置DNS. . .netsh interface ipv4 set dns name="无线网络连接"source=static addr=8.8.4.4netsh interface ipv4 add dns name="无线网络连接"addr=61.177.7.1 index=2echo设置IE代理. . .echo正在设置代理服务器„„reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settings" /v ProxyEnab le/t REG_DWO RD/d 1 /f reg add "HKCUSo ftwareMicroso ftWindowsCurrentVersionInternet Settings" /v ProxyS e rver/d"192.168.100.100:808" /f reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settings" /v ProxyOverride/t REG_SZ/d"" /f echo正在刷新设置„„ipconfig/flushdns goto exit
:school cls echo设置学校网络自动IP地址.netsh interface ipv4 set address name="无线网络连接" source=dhcp echo设置DNS. . .netsh interface ipv4 set dns name="无线网络连接"source=dhcp echo正在清除代理服务器设置„„echo正在清空代理服务器设置„„reg add "HKCUSo ftwareMicroso ftWindowsCurrentVersionInternet Settings" /v ProxyEnab le/t REG_DWO RD/d 0/f reg add "HKCUSo ftwareMicroso ftWindowsCurrentVersionInternet Settings" /v ProxyS e rver/d"" /f reg add "HKCUSo ftwareMicroso ftWindowsCurrentVersionInternet Settings" /v ProxyOverride/t REG_SZ/d 0/f echo代理服务器设置已经清空echo正在刷新设置„„
精品文档
精品文档ipconfig/flushdns goto exit
:exit cls echo.cho.echo.echo.echo.echo************恭喜!网络设置以完成。echo.echo.echo.echo.echo.echo.pause e x it
设置有线与无线同时连接网络route de lete 0.0.0.0route-p add 10.0.0.0 mask 255.0.0.0172.16.64.1 metric 1route-p add 0.0.0.0 mask 0.0.0.0192.168.160.1 metric 25精品文档
以前我们在参与到云服务商促销活动的时候周期基本是一周时间,而如今我们会看到无论是云服务商还是电商活动基本上周期都要有超过一个月,所以我们有一些网友习惯在活动结束之前看看商家是不是有最后的促销活动吸引力的,比如有看到阿里云年中活动最后一周,如果我们有需要云服务器的可以看看。在前面的文章中(阿里云新人福利选择共享性N4云服务器年79.86元且送2月数据库),(LAOZUO.ORG)有提到阿里云今年的云...
达州创梦网络怎么样,达州创梦网络公司位于四川省达州市,属于四川本地企业,资质齐全,IDC/ISP均有,从创梦网络这边租的服务器均可以备案,属于一手资源,高防机柜、大带宽、高防IP业务,一手整C IP段,四川电信,一手四川托管服务商,成都优化线路,机柜租用、服务器云服务器租用,适合建站做游戏,不须要在套CDN,全国访问快,直连省骨干,大网封UDP,无视UDP攻击,机房集群高达1.2TB,单机可提供1...
Ceraus数据成立于2020年底,基于KVM虚拟架构技术;主营提供香港CN2、美国洛杉矶CN2、日本CN2的相关VPS云主机业务。喜迎国庆香港上新首月五折不限新老用户,cera机房,线路好,机器稳,适合做站五折优惠码:gqceraus 续费七五折官方网站:https://www.ceraus.com香港云内存CPU硬盘流量宽带优惠价格购买地址香港云2G2核40G不限5Mbps24元/月点击购买...