手动设置无线固定ip

@echo off
echo "手动设置IP地址...."
cmd /c netsh interface ip set address name="无线网络连接" source=Static addr= 192.168.1.109 mask=255.255.255.0 gateway=192.168.1.1
cmd /c netsh interface ip set dnsservers name="无线网络连接" source=static address=114.114.114.114 register=primary validate=no
cmd /c netsh interface ip add dnsservers name="无线网络连接" addr=123.125.81.6 index=2 validate=no
cmd /c ipconfig/all
echo "设置成功 "
Pause

posted @ 2018-08-07 09:20  不经一番寒彻骨  阅读(504)  评论(0编辑  收藏  举报