





{"id":1695,"date":"2011-01-20T23:42:32","date_gmt":"2011-01-21T03:42:32","guid":{"rendered":"http:\/\/www.killtest.hk\/?p=1695"},"modified":"2011-01-20T23:42:32","modified_gmt":"2011-01-21T03:42:32","slug":"windows-ip","status":"publish","type":"post","link":"https:\/\/www.killtest.hk\/index.php\/unix\/windows-ip\/","title":{"rendered":"\u7591\u96be\u89e3\u7b54-windows\u5feb\u901f\u6279\u8655\u7406\u66f4\u63dbIP"},"content":{"rendered":"<p>\u505a\u4e86\u5169\u500b\u6279\u8655\u7406\u7528\u65bc\u5feb\u901f\u5207\u63dbIP\u548c\u7db2\u95dc\u3002<\/p>\n<p>\u3000\u3000@echo off<\/p>\n<p>\u3000\u3000rem eth \/\/eth \u70ba\u7db2\u5361\u540d\u7a31\uff0c\u53ef\u5728\u7db2\u7d61\u9023\u63a5\u4e2d\u67e5\u8a62\uff0c\u5982\u201d\u672c\u5730\u93c8\u63a5\u201d<\/p>\n<p>\u3000\u3000set eth=\u201d\u7121\u7dda\u7db2\u7d61\u9023\u63a5\u201d<\/p>\n<p>\u3000\u3000rem ip \/\/ip \u70ba\u59b3\u60f3\u66f4\u6539\u7684IP<\/p>\n<p>\u3000\u3000set ip=192.168.1.8<\/p>\n<p>\u3000\u3000rem gw \/\/gw \u70ba\u7db2\u95dc\u5730\u5740<\/p>\n<p>\u3000\u3000set gw=192.168.1.1<\/p>\n<p>\u3000\u3000rem netmasks \/\/netmasks \u70ba\u5b50\u7db2\u63a9\u78bc<\/p>\n<p>\u3000\u3000set netmasks=255.255.255.0<\/p>\n<p>\u3000\u3000echo \u6b63\u5728\u5c07\u672c\u6a5fIP\u66f4\u6539\u5230: %ip%<\/p>\n<p>\u3000\u3000rem<\/p>\n<p>\u3000\u3000if %gw%==none netsh interface ip set address %eth% static %ip% %netmasks% %gw% &gt; nul<\/p>\n<p>\u3000\u3000if not %gw%==none netsh interface ip set address %eth% static %ip% %netmasks% %gw% 1 &gt; nul<\/p>\n<p>\u3000\u3000echo\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026.<\/p>\n<p>\u3000\u3000echo \u6aa2\u67e5\u7576\u524d\u672c\u6a5fIP\uff1a<\/p>\n<p>\u3000\u3000ipconfig<\/p>\n<p>\u3000\u3000echo\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026.<\/p>\n<p>\u3000\u3000echo \u6210\u529f\u5c07\u672c\u6a5fIP\u66f4\u6539\u70ba%ip%\uff01<\/p>\n<p>\u3000\u3000pause<\/p>\n<p>\u3000\u3000close<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u505a\u4e86\u5169\u500b\u6279\u8655\u7406\u7528\u65bc\u5feb\u901f\u5207\u63dbIP\u548c\u7db2\u95dc\u3002 \u3000\u3000@echo off \u3000\u3000rem eth \/\/eth \u70ba\u7db2\u5361\u540d\u7a31\uff0c\u53ef [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[531],"tags":[],"class_list":["post-1695","post","type-post","status-publish","format-standard","hentry","category-unix"],"_links":{"self":[{"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/posts\/1695","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/comments?post=1695"}],"version-history":[{"count":0,"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/posts\/1695\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/media?parent=1695"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/categories?post=1695"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.killtest.hk\/index.php\/wp-json\/wp\/v2\/tags?post=1695"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}