{"id":4551,"date":"2013-12-13T09:38:22","date_gmt":"2013-12-13T00:38:22","guid":{"rendered":"http:\/\/mkusunoki.net\/?p=4551"},"modified":"2014-01-08T23:42:02","modified_gmt":"2014-01-08T14:42:02","slug":"raspberry-pi-%e3%81%ae-ip-%e3%82%a2%e3%83%89%e3%83%ac%e3%82%b9%e3%82%92-dhcp-%e3%81%8b%e3%82%89%e5%9b%ba%e5%ae%9a%e3%81%ab%e5%a4%89%e6%9b%b4","status":"publish","type":"post","link":"https:\/\/mkusunoki.net\/?p=4551","title":{"rendered":"Raspberry Pi \u306e IP \u30a2\u30c9\u30ec\u30b9\u3092 DHCP \u304b\u3089\u56fa\u5b9a\u306b\u5909\u66f4"},"content":{"rendered":"<p><a href=\"http:\/\/mkusunoki.net\/?attachment_id=4550\" rel=\"attachment wp-att-4550\"><img loading=\"lazy\" decoding=\"async\" width=\"1280\" height=\"960\" src=\"http:\/\/mkusunoki.net\/wp\/wp-content\/uploads\/2013\/12\/2013-12-13-09.14.40.jpg\" alt=\"2013-12-13 09.14.40\" class=\"alignnone size-full wp-image-4550\" srcset=\"https:\/\/mkusunoki.net\/wp\/wp-content\/uploads\/2013\/12\/2013-12-13-09.14.40.jpg 1280w, https:\/\/mkusunoki.net\/wp\/wp-content\/uploads\/2013\/12\/2013-12-13-09.14.40-320x240.jpg 320w, https:\/\/mkusunoki.net\/wp\/wp-content\/uploads\/2013\/12\/2013-12-13-09.14.40-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><\/p>\n<p>\nRaspberry Pi \u306e Ethernet \u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306f DHCP \u3067\u30a2\u30c9\u30ec\u30b9\u53d6\u5f97\u3067\u3059\u304c\u3001\u5bb6\u306e\u5149\u30eb\u30fc\u30bf\u30fc\u306e DHCP \u30b5\u30fc\u30d0\u30fc\u306b\u306f\u3001\u6255\u51fa\u3057\u3059\u308b\u30a2\u30c9\u30ec\u30b9\u7bc4\u56f2\u306e\u8a2d\u5b9a\u306f\u3042\u308a\u307e\u3059\u304c\u3001MAC \u30a2\u30c9\u30ec\u30b9\u3067 IP \u30a2\u30c9\u30ec\u30b9\u5272\u308a\u5f53\u3066\u308b\u3068\u3044\u3046\u6a5f\u80fd\u304c\u3042\u308a\u307e\u305b\u3093\u3002\n<\/p>\n<p>\n\u3068\u3044\u3046\u3053\u3068\u3067\u3001Raspbrry pi \u5074\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u8a2d\u5b9a\u7528\u306e\u30d5\u30a1\u30a4\u30eb\u3092 DHCP \u306e\u8a2d\u5b9a\u304b\u3089\u56fa\u5b9a IP \u306e\u8a2d\u5b9a\u306b\u5909\u66f4\u3057\u307e\u3059\u3002Linux \u306a\u306e\u3067 \/etc\/network\/interfaces \u306e\u4fee\u6b63\u3067\u3059\u3002\n<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\npi@raspberrypi:~$ sudo bash\r\nroot@raspberrypi:\/home\/pi# cd \/etc\/network\/\r\nroot@raspberrypi:\/etc\/network# vi interfaces\r\n\r\n---------------------------------------------------------------------------------\r\nauto lo\r\n\r\niface lo inet loopback\r\n\r\n#iface eth0 inet dhcp  \u2190 dhcp \u306e\u884c\u3092\u30b3\u30e1\u30f3\u30c8\u306b\u3057\u3066\u3001static \u306e\u8a2d\u5b9a\u3092\u8ffd\u52a0\r\niface eth0 inet static\r\naddress 192.168.24.188\r\nnetmask 255.255.255.0\r\ngateway 192.168.24.1\r\nnetwork 192.168.24.0\r\nbroadcast 192.168.24.255\r\n\r\nallow-hotplug wlan0\r\niface wlan0 inet manual\r\nwpa-roam \/etc\/wpa_supplicant\/wpa_supplicant.conf\r\niface default inet dhcp\r\n~\r\n~\r\n~\r\n~\r\n~\r\n~\r\n~\r\n&quot;interfaces&quot; 16 lines, 308 characters\r\n---------------------------------------------------------------------------------\r\n\r\nroot@raspberrypi:\/etc\/network# reboot     \u2190 \u7de8\u96c6\u304a\u308f\u3063\u305f\u3089\u30ea\u30d6\u30fc\u30c8\r\n<\/pre>\n<p><a href=\"http:\/\/mkusunoki.net\/?attachment_id=4552\" rel=\"attachment wp-att-4552\"><img loading=\"lazy\" decoding=\"async\" width=\"1280\" height=\"960\" src=\"http:\/\/mkusunoki.net\/wp\/wp-content\/uploads\/2013\/12\/2013-12-13-09.33.23.jpg\" alt=\"2013-12-13 09.33.23\"  class=\"alignnone size-full wp-image-4552\" srcset=\"https:\/\/mkusunoki.net\/wp\/wp-content\/uploads\/2013\/12\/2013-12-13-09.33.23.jpg 1280w, https:\/\/mkusunoki.net\/wp\/wp-content\/uploads\/2013\/12\/2013-12-13-09.33.23-320x240.jpg 320w, https:\/\/mkusunoki.net\/wp\/wp-content\/uploads\/2013\/12\/2013-12-13-09.33.23-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><\/p>\n<p>\n\u6709\u7dda LAN \u306e\u63a5\u7d9a\u51fa\u6765\u308b\u5834\u6240\u304c\u5c45\u9593\u306e\u5149\u56de\u7dda\u8a2d\u5099\u4ed8\u8fd1\u306e\u307f\u306a\u306e\u3067\u30015V \u306e\u96fb\u6e90\u78ba\u4fdd\u6b21\u7b2c\u3053\u3053\u3089\u3078\u3093\u306b\u30dd\u30f3\u7f6e\u304d\u3057\u3068\u304f\u4e88\u5b9a\u3002\u306a\u306b\u3082\u3072\u3089\u3081\u304b\u306a\u304b\u3063\u305f\u3089 USB HDD \u5dee\u3057\u3066\u7c21\u6613 SAMBA \u30b5\u30fc\u30d0\u30fc\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u4e88\u5b9a\u3002\u3053\u308c\u3067 Si4735 \u30e9\u30b8\u30aa\u30e2\u30b8\u30e5\u30fc\u30eb i2c \u5236\u5fa1\u3082\u3044\u3044\u3067\u3059\u304b\u306d\u3047\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Raspberry Pi \u306e Ethernet \u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306f DHCP \u3067\u30a2\u30c9\u30ec\u30b9\u53d6\u5f97\u3067\u3059\u304c\u3001\u5bb6\u306e\u5149\u30eb\u30fc\u30bf\u30fc\u306e DHCP \u30b5\u30fc\u30d0\u30fc\u306b\u306f\u3001\u6255\u51fa\u3057\u3059\u308b\u30a2\u30c9\u30ec\u30b9\u7bc4\u56f2\u306e\u8a2d\u5b9a\u306f\u3042\u308a\u307e\u3059\u304c\u3001MAC \u30a2\u30c9\u30ec\u30b9\u3067 IP \u30a2\u30c9\u30ec\u30b9\u5272\u308a\u5f53 &hellip; <a href=\"https:\/\/mkusunoki.net\/?p=4551\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Raspberry Pi \u306e IP \u30a2\u30c9\u30ec\u30b9\u3092 DHCP \u304b\u3089\u56fa\u5b9a\u306b\u5909\u66f4&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":2,"featured_media":4550,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[54,7],"tags":[252],"class_list":["post-4551","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-pc","category-kousaku","tag-raspberypi"],"jetpack_featured_media_url":"https:\/\/mkusunoki.net\/wp\/wp-content\/uploads\/2013\/12\/2013-12-13-09.14.40.jpg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/mkusunoki.net\/index.php?rest_route=\/wp\/v2\/posts\/4551","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mkusunoki.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mkusunoki.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mkusunoki.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mkusunoki.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4551"}],"version-history":[{"count":2,"href":"https:\/\/mkusunoki.net\/index.php?rest_route=\/wp\/v2\/posts\/4551\/revisions"}],"predecessor-version":[{"id":4554,"href":"https:\/\/mkusunoki.net\/index.php?rest_route=\/wp\/v2\/posts\/4551\/revisions\/4554"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mkusunoki.net\/index.php?rest_route=\/wp\/v2\/media\/4550"}],"wp:attachment":[{"href":"https:\/\/mkusunoki.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4551"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mkusunoki.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4551"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mkusunoki.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}