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=netsh interface ipv4 add dns name="无线网络连接"addr=61.177.7.1 index=2echo ------------------------------------------------------------------------------echo ---------------------------------------------------------------------------------echo -----------------------------
改为DHPC 自动获取设置
@echo offf netsh interface ipv4 set address name=netsh interface ipv4 set dns name=echo ------------------------------
开启IE代理服务器设置
@echo off
ti tle 自动设置代理服务器echo正在设置代理服务器……reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settings" /v ProxyEnable/t REG_DWORD/d 1 /f reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settings" /v ProxyServer/d"192.168.100.100:808"/f reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settings" /v ProxyOverride/t REG_SZ/d""/f echo正在刷新设置……ipconfig/flushdns
关闭IE代理服务器设置:
@echo off ti tle 自动清除I E代理echo正在清空代理服务器设置……reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settings" /v ProxyEnable/t REG_DWORD/d 0/f reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settings" /v ProxyServer/d""/f reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settings" /v ProxyOverride/t REG_SZ/d 0/f
echo代理服务器设置已经清空echo正在刷新设置……ipconfig/flushdns
批处理自动选择网络设置全文
注复制到记事本文件中别存为后缀改为” .b at”文件。在wi n 7系统中运行时会提示 “请求的操作需要提升为<作为管理员运行>”只需要在此bat文件上右击“以管理员身份运行”即可。
全文如下
@echo off color 1f title windows 7多网络环境自动切换管理echo.echo ********************************************echo *** windows 7双网络环寺自动切换管理 ***echo *** 作者王明洪MSN: ***echo ********************************************echo *** 设置IP参数,设置IE代理 ***echo.echo.goto menus
:menus echo.
echo请选择:echo.echo 1切换到家庭代理网络echo.echo 2切换到学校自动获取IP地址网络。echo.echo 3放弃设备退出echo.set/p select=请输入菜单对应数字后回车:if/i "%select%"=="1"goto home if/i "%select%"=="2"goto school if/i "%select%"=="3"exit goto menus
:home cls netsh interface ip resetecho设置IP.. .设置网关. .. ..设置子网netsh interface ipv4 set address "无线网络连接" static 192.168.100.200 255.255.255.0
192.168.100.1echo设置DNS. . .netsh interface ipv4 set dns name=netsh interface ipv4 add dns name="无线网络连接"addr=61.177.7.1 index=2
echo设置IE代理. ..echo正在设置代理服务器……reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settings" /v ProxyEnable/t REG_DWORD/d 1 /f reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settings" /v ProxyServer/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=echo设置DNS. . .netsh interface ipv4 set dns name=echo正在清除代理服务器设置……echo正在清空代理服务器设置……reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settings" /v ProxyEnable/t REG_DWORD/d 0/f reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settings" /v
ProxyServer/d""/f reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet 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
exit
设置有线与无线同时连接网络route delete 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
RackNerd今天补货了3款便宜vps,最便宜的仅$9.49/年, 硬盘是SSD RAID-10 Storage,共享G口带宽,最低配给的流量也有2T,注意,这3款补货的便宜vps是intel平台。官方网站便宜VPS套餐机型均为KVM虚拟,SolusVM Control Panel ,硬盘是SSD RAID-10 Storage,共享G口带宽,大流量。CPU:1核心内存:768 MB硬盘:12 ...
pigyun怎么样?PIGYun成立于2019年,2021是PIGYun为用户提供稳定服务的第三年,期待我们携手共进、互利共赢。PIGYun为您提供:香港CN2线路、韩国CN2线路、美西CUVIP-9929线路优质IaaS服务。月付另有通用循环优惠码:PIGYun,获取8折循环优惠(永久有效)。目前,PIGYun提供的香港cn2云服务器仅29元/月起;韩国cn2云服务器仅22元/月起;美国CUVI...
萨主机(lisahost)新上了美国cn2 gia国际精品网络 – 精品线路,支持解锁美区Netflix所有资源,HULU, DISNEY, StartZ, HBO MAX,ESPN, Amazon Prime Video等,同时支持Tiktok。套餐原价基础上加价20元可更换23段美国原生ip。支持Tiktok。成功下单后,在线充值相应差价,提交工单更换美国原生IP。!!!注意是加价20换原生I...