{"id":242,"date":"2019-03-15T13:44:39","date_gmt":"2019-03-15T05:44:39","guid":{"rendered":"https:\/\/www.ientertech.com\/blog\/?p=242"},"modified":"2019-03-15T13:44:39","modified_gmt":"2019-03-15T05:44:39","slug":"%e6%a0%91%e8%8e%93%e6%b4%be-%e4%bd%bf%e7%94%a8%e5%9b%ba%e5%ae%9aip","status":"publish","type":"post","link":"https:\/\/www.ienter.com.cn\/blog\/2019\/03\/%e6%a0%91%e8%8e%93%e6%b4%be-%e4%bd%bf%e7%94%a8%e5%9b%ba%e5%ae%9aip.html","title":{"rendered":"\u6811\u8393\u6d3e \u4f7f\u7528\u56fa\u5b9aIP"},"content":{"rendered":"<p>\u5728\"\/etc\/network\/interfaces\"<\/p>\n<p>\u53ef\u4ee5\u770b\u5230\u8fd9\u4e2a\u8bf4\u660e<\/p>\n<p># For static IP, consult \/etc\/dhcpcd.conf and 'man dhcpcd.conf'<\/p>\n<p>\u4e5f\u5c31\u662f\u9759\u6001IP\u5728\/etc\/dhcpcd.conf\u91cc\u8bbe\u7f6e<\/p>\n<p>\u6253\u5f00\u8fd9\u4e2a\u6587\u4ef6\u5728\u6700\u540e\u9762\u6dfb\u52a0<\/p>\n<p>interface eth0<br \/>\nstatic ip_address=192.168.1.10\/24<br \/>\nstatic routers=192.168.1.1<br \/>\nstatic domain_name_servers=223.5.5.5<\/p>\n<p>\u8fd9\u662f\u8bbe\u7f6e\u6709\u7ebf\u7f51\u5361eth0\u7684ip\uff0c\u7f51\u5173\u53cadns<\/p>\n<p>\u65e0\u7ebf\u8bbe\u7f6e\u5982\u4e0b\uff1a<\/p>\n<p>interface wlan0<br \/>\nstatic ip_address=192.168.1.10\/24<br \/>\nstatic routers=192.168.1.1<br \/>\nstatic domain_name_servers=223.5.5.5<\/p>\n<p>\u6709\u7ebf\u65e0\u7ebf\u65b9\u6cd5\u4e00\u6837\uff0c\u683c\u5f0f\u4e00\u6837\uff0c\u5c31\u662f\u8bbe\u5907\u540d\uff08wlan0\uff09\u4e0d\u4e00\u6837\u800c\u5df2\u3002<\/p>\n<p>\u5728\u8fd9\u91cc\u8bbe\u7f6ewifi\u7684ssid\u548c\u5bc6\u7801<\/p>\n<p>\/etc\/wpa_supplicant\/wpa_supplicant.conf\u00a0 \u683c\u5f0f\u5982\u4e0b<\/p>\n<p>network={<br \/>\nssid=\"iEnterAP\"<br \/>\npsk=\"22531143\"<br \/>\n}<\/p>\n<p>\u8fd8\u7f3a\u5c11wlan0\u5f00\u542f\uff0c\u8fde\u63a5\uff0c\u7b49\u4e0b\u52a0<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\"\/etc\/network\/...<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[36,37,32,22],"class_list":["post-242","post","type-post","status-publish","format-standard","hentry","category-linux","tag-lan","tag-raspberrypi","tag-wifi","tag-22"],"_links":{"self":[{"href":"https:\/\/www.ienter.com.cn\/blog\/wp-json\/wp\/v2\/posts\/242","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=242"}],"version-history":[{"count":0,"href":"https:\/\/www.ienter.com.cn\/blog\/wp-json\/wp\/v2\/posts\/242\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.ienter.com.cn\/blog\/wp-json\/wp\/v2\/media?parent=242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ienter.com.cn\/blog\/wp-json\/wp\/v2\/categories?post=242"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ienter.com.cn\/blog\/wp-json\/wp\/v2\/tags?post=242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}