{"id":1481,"date":"2009-11-06T00:55:23","date_gmt":"2009-11-05T15:55:23","guid":{"rendered":"http:\/\/www.maocat.net\/?p=1481"},"modified":"2011-04-25T23:17:59","modified_gmt":"2011-04-25T14:17:59","slug":"1481","status":"publish","type":"post","link":"https:\/\/www.maocat.net\/?p=1481","title":{"rendered":"DHCP\u3067IP\u3092\u5272\u308a\u632f\u308b"},"content":{"rendered":"<p>IP\u3092\u52d5\u7684\u306b\u5272\u308a\u5f53\u3066\u3066\u304f\u308c\u308b\u3001\u30b9\u30c6\u30ad\u306a\u30b7\u30b9\u30c6\u30e0\u3067\u3059\u3002<br \/>\n\u3064\u3044\u3067\u306b\u30cd\u30c3\u30c8\u30de\u30b9\u30af\u3068\u304bDNS\u306e\u5834\u6240\u3068\u304b\u3082\u81ea\u52d5\u3067\u8a2d\u5b9a\u3057\u3066\u304f\u308c\u305f\u308a\u3068\u3001\u81f3\u308c\u308a\u5c3d\u304f\u305b\u308a\u306a\u30b5\u30fc\u30d3\u30b9\u3067\u3059\u3002<br \/>\n\u3067\u3082\u3001\u9069\u5f53\u306b\u5272\u308a\u632f\u3089\u308c\u3061\u3083\u3046\u3068\u30a4\u30e4\u306a\u306e\u3067\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a2\u30c0\u30d7\u30bf\u56fa\u6709\u306eMAC\u30a2\u30c9\u30ec\u30b9\u3092\u4f7f\u3063\u3066IP\u3092\u56fa\u6709\u306b\u5272\u308a\u5f53\u3066\u308b\u8a2d\u5b9a\u3067\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<pre>apt-get install dhcp3-server<\/pre>\n<p>\u3042\u308c\u30fc\uff1f\u3000\u4eca\u307e\u3067dhcp3\u306a\u3093\u3066\u540d\u524d\u4ed8\u3044\u3066\u305f\u3063\u3051\u304b\uff1f<br \/>\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306e\u3082\u4e45\u3057\u3076\u308a\u3060\u304b\u3089\u3001\u3059\u3063\u304b\u308a\u5909\u308f\u3063\u3066\u305f\u306e\u304b\u3057\u3089\u30fb\u30fb\u30fb\u3002<br \/>\n\u7121\u4e8b\u306b\u5165\u3063\u305f\u3089\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\/etc\/dhcp3\/dhcpd.conf\u3092\u66f8\u304d\u63db\u3048\u308b\u3002<br \/>\n\u4f8b\uff1a\u30c9\u30e1\u30a4\u30f3\u300cmaocat.net\u300d\u3000IP\u30a2\u30c9\u30ec\u30b9\u300c192.168.255.0\/255.255.255.0\u300d\u3000\u30b2\u30fc\u30c8\u30a6\u30a7\u30a4\u300c192.168.255.1\u300d\u3000\u30cd\u30fc\u30e0\u30b5\u30fc\u30d0IP\u300c192.168.255.10\u300d<\/p>\n<pre>option domain-name \"maocat.net\";\r\noption domain-name-servers 192.168.255.10;\r\n\r\nsubnet 192.168.255.0 netmask 255.255.255.0 {\r\n option routers 192.168.255.1;\r\n option subnet-mask 255.255.255.0;\r\n option broadcast-address 192.168.255.255;\r\n default-lease-time 600;\r\n max-lease-time 7200;\r\n\r\n host \u30db\u30b9\u30c8\u540d {\r\n\u00a0\u00a0 hardware ethernet MAC\u30a2\u30c9\u30ec\u30b9;\r\n\u00a0\u00a0 fixed-address \u5272\u308a\u5f53\u3066\u308bIP;\r\n }<\/pre>\n<p>MAC\u30a2\u30c9\u30ec\u30b9\u90e8\u5206\u306e\u533a\u5207\u308a\u306f\u30b3\u30ed\u30f3\u3092\u4f7f\u3046(xx:xx:xx:xx:xx:xx)\u3002<br \/>\n\u5272\u308a\u632f\u308bIP\u3092\u5897\u3084\u3059\u5834\u5408\u306fhost\u90e8\u5206\u3092\u5897\u3084\u3057\u3066\u8a2d\u5b9a\u3057\u3066\u3044\u3051\u3070\u826f\u3044\u3002<\/p>\n<p>\u8ffd\u8a18\uff1a2011.04.25<br \/>\nDebian\u304csqueeze\u306b\u306a\u3063\u305f\u6642\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u6240\u3001isc-dhcp-server\u306b\u306a\u3063\u3066\u305f\u3002<br \/>\n\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u304c\/etc\/dhcp\/dhcpd.conf\u306b\u5909\u66f4\u3055\u308c\u3066\u3001\u8d77\u52d5\u30b9\u30af\u30ea\u30d7\u30c8\u306a\u3093\u304b\u3082isc-dhcp-server\u306b\u5909\u308f\u3063\u3066\u3044\u308b\u3002<br \/>\n\u6bce\u56de\u3001\u540d\u524d\u304c\u5909\u308f\u3063\u3066\u9762\u5012\u306a\u30e4\u30c4\u3060\u3001\u3077\u3093\u3059\u304b\uff1e\uff1c<\/p>\n","protected":false},"excerpt":{"rendered":"<p>IP\u3092\u52d5\u7684\u306b\u5272\u308a\u5f53\u3066\u3066\u304f\u308c\u308b\u3001\u30b9\u30c6\u30ad\u306a\u30b7\u30b9\u30c6\u30e0\u3067\u3059\u3002 \u3064\u3044\u3067\u306b\u30cd\u30c3\u30c8\u30de\u30b9\u30af\u3068\u304bDNS\u306e\u5834\u6240\u3068\u304b\u3082\u81ea\u52d5\u3067\u8a2d\u5b9a\u3057\u3066\u304f\u308c\u305f\u308a\u3068\u3001\u81f3\u308c\u308a\u5c3d\u304f\u305b\u308a\u306a\u30b5\u30fc\u30d3\u30b9\u3067\u3059\u3002 \u3067\u3082\u3001\u9069\u5f53\u306b\u5272\u308a\u632f\u3089\u308c\u3061\u3083\u3046\u3068\u30a4\u30e4\u306a\u306e\u3067\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a2\u30c0\u30d7\u30bf\u56fa\u6709 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[2],"tags":[55,84],"class_list":["post-1481","post","type-post","status-publish","format-standard","hentry","category-2","tag-debianlinux","tag-dhcp"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/s1vAGx-1481","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.maocat.net\/index.php?rest_route=\/wp\/v2\/posts\/1481","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.maocat.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.maocat.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.maocat.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.maocat.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1481"}],"version-history":[{"count":4,"href":"https:\/\/www.maocat.net\/index.php?rest_route=\/wp\/v2\/posts\/1481\/revisions"}],"predecessor-version":[{"id":3491,"href":"https:\/\/www.maocat.net\/index.php?rest_route=\/wp\/v2\/posts\/1481\/revisions\/3491"}],"wp:attachment":[{"href":"https:\/\/www.maocat.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1481"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.maocat.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1481"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.maocat.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1481"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}