精品文档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精品文档
部落分享过多次G-core(gcorelabs)的产品及评测信息,以VPS主机为主,距离上一次分享商家的独立服务器还在2年多前,本月初商家针对迈阿密机房限定E5-2623v4 CPU的独立服务器推出75折优惠码,活动将在9月30日到期,这里再分享下。G-core(gcorelabs)是一家总部位于卢森堡的国外主机商,主要提供基于KVM架构的VPS主机和独立服务器租用等,数据中心包括俄罗斯、美国、日...
点击进入亚云官方网站(www.asiayun.com)公司名:上海玥悠悠云计算有限公司成都铂金宿主机IO测试图亚洲云Asiayun怎么样?亚洲云Asiayun好不好?亚云由亚云团队运营,拥有ICP/ISP/IDC/CDN等资质,亚云团队成立于2018年,经过多次品牌升级。主要销售主VPS服务器,提供云服务器和物理服务器,机房有成都、美国CERA、中国香港安畅和电信,香港提供CN2 GIA线路,CE...
BlueHost 主机商在以前做外贸网站的时候还是经常会用到的,想必那时候有做外贸网站或者是选择海外主机的时候还是较多会用BlueHost主机商的。只不过这些年云服务器流行且性价比较高,于是大家可选择商家变多,但是BlueHost在外贸主机用户群中可选的还是比较多的。这次年中618活动大促来袭,毕竟BLUEHOST商家目前中文公司设立在上海,等后面有机会也过去看看。他们也会根据我们的国内年中促销发...