{"id":10417,"date":"2023-04-23T11:06:33","date_gmt":"2023-04-23T02:06:33","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=10417"},"modified":"2024-01-06T16:47:34","modified_gmt":"2024-01-06T07:47:34","slug":"dhcp%e3%82%b5%e3%83%bc%e3%83%90%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%ef%bc%81%ef%bc%88rocky-linux-9%ef%bc%89","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/10417","title":{"rendered":"DHCP\u30b5\u30fc\u30d0\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01\uff08Rocky Linux 9\uff09"},"content":{"rendered":"<p>Rocky Linux 9\u306bDHCP\u30b5\u30fc\u30d0\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<h2>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u74b0\u5883\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u74b0\u5883\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# hostnamectl\r\n Static hostname: vmsins01\r\n       Icon name: computer-vm\r\n         Chassis: vm\r\n      Machine ID: 3586dd9d0055464c8ea86a45349ecb43\r\n         Boot ID: 162c0367f05c41b0a0fc7553dffb0aee\r\n  Virtualization: oracle\r\nOperating System: Rocky Linux 9.1 (Blue Onyx)      \r\n     CPE OS Name: cpe:\/o:rocky:rocky:9::baseos\r\n          Kernel: Linux 5.14.0-162.6.1.el9_1.x86_64\r\n    Architecture: x86-64\r\n Hardware Vendor: innotek GmbH\r\n  Hardware Model: VirtualBox\r\n<\/pre>\n<h2>DHCP\u30b5\u30fc\u30d0\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01<\/h2>\n<p>DHCP\u30b5\u30fc\u30d0\u3092Rocky Linux 9\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# dnf -y install dhcp-server \r\nLast metadata expiration check: 1:07:32 ago on Sun 23 Apr 2023 09:59:28 AM JST.\r\nDependencies resolved.\r\n==================================================================================================================\r\n Package                    Architecture          Version                             Repository             Size\r\n==================================================================================================================\r\nInstalling:\r\n dhcp-server                x86_64                12:4.4.2-17.b1.el9                  baseos                1.2 M\r\nInstalling dependencies:\r\n dhcp-common                noarch                12:4.4.2-17.b1.el9                  baseos                128 k\r\n\r\nTransaction Summary\r\n==================================================================================================================\r\nInstall  2 Packages\r\n...\r\nInstalled:\r\n  dhcp-common-12:4.4.2-17.b1.el9.noarch                   dhcp-server-12:4.4.2-17.b1.el9.x86_64                  \r\n\r\nComplete!\r\n<\/pre>\n<h2>DHCP\u30b5\u30fc\u30d0\u306e\u8a2d\u5b9a\u3092\u884c\u3046\uff01<\/h2>\n<p>DHCP\u30b5\u30fc\u30d0\u306e\u8a2d\u5b9a\u3092\u884c\u3046\uff01<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# cat &lt;EOF | tee \/etc\/dhcp\/dhcpd.conf \r\n#\r\n# DHCP Server Configuration file.\r\n#   see \/usr\/share\/doc\/dhcp-server\/dhcpd.conf.example\r\n#   see dhcpd.conf(5) man page\r\n#\r\noption domain-name     &quot;loc.lab4ict.com&quot;;\r\noption domain-name-servers     ns1.loc.lab4ict.com;\r\n\r\ndefault-lease-time 3600;\r\nmax-lease-time 7200;\r\n\r\nauthoritative; \r\n\r\nsubnet 10.1.0.0 netmask 255.255.0.0 {\r\n    range dynamic-bootp 10.1.251.1 10.1.251.254;\r\n    option broadcast-address 10.1.255.255;\r\n    option routers 10.1.0.1;\r\n}\r\n<\/pre>\n<h2>DHCP\u30b5\u30fc\u30d0\u306e\u8d77\u52d5\u8a2d\u5b9a\u3092\u884c\u3046\uff01<\/h2>\n<p>DHCP\u30b5\u30fc\u30d0\u306e\u8d77\u52d5\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# systemctl enable --now dhcpd\r\n<\/pre>\n<h2>DHCP\u30b5\u30fc\u30d0\u306e\u8d77\u52d5\u72b6\u614b\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<p>DHCP\u30b5\u30fc\u30d0\u306e\u8d77\u52d5\u72b6\u614b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,3]; title: ; notranslate\" title=\"\">\r\n# systemctl is-enabled dhcpd\r\nenabled\r\n# systemctl status dhcpd\r\n\u25cf dhcpd.service - DHCPv4 Server Daemon\r\n     Loaded: loaded (\/usr\/lib\/systemd\/system\/dhcpd.service; enabled; vendor preset: disabled)\r\n     Active: active (running) since Sun 2023-04-23 11:22:08 JST; 11min ago\r\n       Docs: man:dhcpd(8)\r\n             man:dhcpd.conf(5)\r\n   Main PID: 36269 (dhcpd)\r\n     Status: &quot;Dispatching packets...&quot;\r\n      Tasks: 1 (limit: 11062)\r\n     Memory: 4.6M\r\n        CPU: 8ms\r\n     CGroup: \/system.slice\/dhcpd.service\r\n             \u2514\u250036269 \/usr\/sbin\/dhcpd -f -cf \/etc\/dhcp\/dhcpd.conf -user dhcpd -group dhcpd --no-pid\r\n<\/pre>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>Rocky Linux 9\u3067\u306f\u3001DHCP\u30b5\u30fc\u30d0\u306f\u3001Rocky Linux 9\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u95a2\u9023\u8a18\u4e8b<\/h2>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/10355\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"\u3010\u8a18\u4e8b\u4e00\u89a7\u3011 \u30b5\u30fc\u30d0\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2022\/11\/eyecatch_serverapps_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011 \u30b5\u30fc\u30d0\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\uff01<\/div><div class=\"substr\">\u5404\u7a2e\u30b5\u30fc\u30d0\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/4965\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"\u3010\u8a18\u4e8b\u4e00\u89a7\u3011RHEL\u7cfb\u306eOS\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2022\/04\/fi_rhel_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011RHEL\u7cfb\u306eOS\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01<\/div><div class=\"substr\">RHEL\u7cfb\u306eOS\u3092\u4f7f\u3044\u3053\u306a\u3059\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<h2>\u53c2\u8003\u66f8\u7c4d\uff08Amazon\uff09<\/h2>\n<p><iframe sandbox=\"allow-popups allow-scripts allow-modals allow-forms allow-same-origin\" style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&bc1=000000&IS2=1&bg1=FFFFFF&fc1=000000&lc1=0000FF&t=infotecr-22&language=ja_JP&o=9&p=8&l=as4&m=amazon&f=ifr&ref=as_ss_li_til&asins=B0B3QSS8DT&linkId=084bc293878287f1edff8e093bf34311\"><\/iframe><\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Rocky Linux 9\u306bDHCP\u30b5\u30fc\u30d0\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":14987,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[232],"tags":[736,282,467,469,52,461],"class_list":["post-10417","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server-applications","tag-dhcp","tag-linux","tag-rocky-linux","tag-rocky-linux-9","tag-52","tag-461"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/10417","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/comments?post=10417"}],"version-history":[{"count":13,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/10417\/revisions"}],"predecessor-version":[{"id":15747,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/10417\/revisions\/15747"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media\/14987"}],"wp:attachment":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media?parent=10417"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=10417"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=10417"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}