{"id":303,"date":"2019-10-22T11:06:04","date_gmt":"2019-10-22T03:06:04","guid":{"rendered":"https:\/\/www.ientertech.com\/blog\/?p=303"},"modified":"2019-10-22T11:06:04","modified_gmt":"2019-10-22T03:06:04","slug":"winodws-%e4%bf%ae%e6%94%b9ip%e3%80%81dns%e6%89%b9%e5%a4%84%e7%90%86","status":"publish","type":"post","link":"https:\/\/www.ienter.com.cn\/blog\/2019\/10\/winodws-%e4%bf%ae%e6%94%b9ip%e3%80%81dns%e6%89%b9%e5%a4%84%e7%90%86.html","title":{"rendered":"Winodws \u4fee\u6539IP\u3001DNS\u6279\u5904\u7406"},"content":{"rendered":"<p>@echo off<br \/>\necho 1: \u81ea\u52a8\u83b7\u53d6IP<br \/>\necho 2: 192.168.100.185<br \/>\necho 3: 192.168.200.185<br \/>\necho 4: 192.168.50.185<br \/>\nset \/p input=\u8bf7\u8f93\u5165\u9009\u62e9\uff1a<br \/>\nif \"%input%\" == \"1\" goto 1:<br \/>\nif \"%input%\" == \"2\" goto 2:<br \/>\nif \"%input%\" == \"3\" goto 3:<br \/>\nif \"%input%\" == \"4\" goto 4:<br \/>\npause<br \/>\nexit<\/p>\n<p>:1<br \/>\necho \u81ea\u52a8\u83b7\u53d6IP\u8bbe\u7f6e\u4e2d<br \/>\nnetsh interface ip set address name=\"Wlan\" source=dhcp<br \/>\nnetsh interface ip delete dns \"Wlan\" all<br \/>\nipconfig \/flushdns<br \/>\necho \u4fee\u6539\u5b8c\u6210<br \/>\npause<br \/>\nexit<\/p>\n<p>:2<br \/>\necho \u8bbe\u7f6e\u4e3a 192.168.100.185<br \/>\ncmd \/c netsh interface ip set address name=\"Wlan\" source=static addr=192.168.100.185 mask=255.255.255.0 gwmetric=0<br \/>\ncmd \/c netsh interface ip set dns name=\"Wlan\" source=static addr=223.5.5.5<br \/>\ncmd \/c netsh interface ip add dns name=\"Wlan\" addr=223.6.6.6 index=2<br \/>\necho \u4fee\u6539\u5b8c\u6210<br \/>\npause<br \/>\nexit<\/p>\n<p>:3<br \/>\necho \u8bbe\u7f6e\u4e3a 192.168.200.185<br \/>\ncmd \/c netsh interface ip set address name=\"Wlan\" source=static addr=192.168.200.185 mask=255.255.255.0 gwmetric=0<br \/>\ncmd \/c netsh interface ip set dns name=\"Wlan\" source=static addr=223.5.5.5<br \/>\ncmd \/c netsh interface ip add dns name=\"Wlan\" addr=223.6.6.6 index=2<br \/>\necho \u4fee\u6539\u5b8c\u6210<br \/>\npause<br \/>\nexit<\/p>\n<p>:4<br \/>\necho \u8bbe\u7f6e\u4e3a 192.168.50.185<br \/>\ncmd \/c netsh interface ip set address name=\"Wlan\" source=static addr=192.168.50.185 mask=255.255.255.0 gateway=192.168.50.1 gwmetric=0<br \/>\ncmd \/c netsh interface ip set dns name=\"Wlan\" source=static addr=223.5.5.5<br \/>\ncmd \/c netsh interface ip add dns name=\"Wlan\" addr=223.6.6.6 index=2<br \/>\necho \u4fee\u6539\u5b8c\u6210<br \/>\npause<br \/>\nexit<\/p>\n","protected":false},"excerpt":{"rendered":"<p>@echo off echo ...<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[16],"class_list":["post-303","post","type-post","status-publish","format-standard","hentry","category-windows","tag-windows"],"_links":{"self":[{"href":"https:\/\/www.ienter.com.cn\/blog\/wp-json\/wp\/v2\/posts\/303","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ienter.com.cn\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ienter.com.cn\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ienter.com.cn\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ienter.com.cn\/blog\/wp-json\/wp\/v2\/comments?post=303"}],"version-history":[{"count":0,"href":"https:\/\/www.ienter.com.cn\/blog\/wp-json\/wp\/v2\/posts\/303\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.ienter.com.cn\/blog\/wp-json\/wp\/v2\/media?parent=303"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ienter.com.cn\/blog\/wp-json\/wp\/v2\/categories?post=303"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ienter.com.cn\/blog\/wp-json\/wp\/v2\/tags?post=303"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}