{"id":1430,"date":"2019-10-22T12:37:13","date_gmt":"2019-10-22T03:37:13","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=1430"},"modified":"2023-08-23T06:43:59","modified_gmt":"2023-08-22T21:43:59","slug":"ubuntu%e3%82%88%e3%82%8awake-on-lan%e3%81%a7%e3%83%aa%e3%83%a2%e3%83%bc%e3%83%88%e3%81%ae%e3%83%9e%e3%82%b7%e3%83%b3%e3%82%92%e8%b5%b7%e5%8b%95%e3%81%99%e3%82%8b%ef%bc%81","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/1430","title":{"rendered":"Ubuntu\u3088\u308aWake on Lan\u3067\u30ea\u30e2\u30fc\u30c8\u306e\u30de\u30b7\u30f3\u3092\u8d77\u52d5\u3059\u308b\uff01"},"content":{"rendered":"<p>Ubuntu\u3088\u308a\u3001Wake on Lan\u3067\u30ea\u30e2\u30fc\u30c8\u306e\u30de\u30b7\u30f3\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<h2>\u4f7f\u7528\u3057\u305f\u74b0\u5883<\/h2>\n<ul>\n<li>Ubuntu 18.04 LTS Desktop (18.04.3)<\/li>\n<\/ul>\n<h2>Wake on LAN\u304c\u4f7f\u7528\u3067\u304d\u308b\u6761\u4ef6<\/h2>\n<p>Wake on LAN\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u6761\u4ef6\u3092\u6e80\u305f\u3057\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30ea\u30e2\u30fc\u30c8\u3067\u8d77\u52d5\u3059\u308b\u30de\u30b7\u30f3\u306e\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u304cWake on LAN\u306b\u5bfe\u5fdc\u3057\u3066\u304a\u308a\u3001BIOS\u306e\u8a2d\u5b9a\u3067Wake on LAN\u3092\u6709\u52b9\u5316\u3057\u3066\u3044\u308b\u3053\u3068\u3002<\/li>\n<li>\u30ea\u30e2\u30fc\u30c8\u3067\u8d77\u52d5\u3059\u308b\u30de\u30b7\u30f3\u306eOS\u304cWake on LAN\u306b\u5bfe\u5fdc\u3057\u3066\u304a\u308a\u3001Wake on LAN\u3092\u6709\u52b9\u5316\u3057\u3066\u3044\u308b\u3053\u3068\u3002<\/li>\n<li>Wake on LAN\u3067\u8d77\u52d5\u3092\u304b\u3051\u308b\u30de\u30b7\u30f3\u3068\u8d77\u52d5\u3055\u308c\u308b\u30de\u30b7\u30f3\u304c\u540c\u4e00\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30bb\u30b0\u30e1\u30f3\u30c8\u306b\u63a5\u7d9a\u3055\u308c\u3066\u3044\u308b\u3053\u3068<\/li>\n<\/li>\n<\/ul>\n<h2>BIOS\u306e\u8a2d\u5b9a\u3067Wake on LAN\u3092\u6709\u52b9\u5316<\/h2>\n<p>Wake on LAN\u3067\u8d77\u52d5\u3055\u308c\u308b\u30de\u30b7\u30f3\u306eBIOS\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u3001Wake on LAN\u3092\u6709\u52b9\u5316\u3057\u307e\u3059\u3002<\/p>\n<h2>\u8d77\u52d5\u3055\u308c\u308b\u30de\u30b7\u30f3\u306eOS\u306e\u8a2d\u5b9a\u3067Wake on LAN\u3092\u6709\u52b9\u5316<\/h2>\n<p>Wake on LAN\u3067\u8d77\u52d5\u3055\u308c\u308b\u30de\u30b7\u30f3\u306eOS\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u3066\u3001Wake on LAN\u3092\u6709\u52b9\u5316\u3057\u307e\u3059\u3002<\/p>\n<h3>Ubuntu Desktop 18.04 LTS\u306e\u5834\u5408<\/h3>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3001Wake on LAN\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3001Wake-on\u304c\u3001\u300cg\u300d\u306b\u306a\u3063\u3066\u3044\u308c\u3070\u6709\u52b9\u3067\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ sudo ethtool enp0s25 | grep Wake-on\r\n\tSupports Wake-on: pumbg\r\n\tWake-on: g\r\n<\/pre>\n<p>Wake-on\u304c\u3001\u300cd\u300d\u7b49\u3067\u6709\u52b9\u3067\u306a\u3044\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u6709\u52b9\u5316\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ sudo ethtool -s enp0s25 wol g\r\n<\/pre>\n<p>\u672c\u8a2d\u5b9a\u306f\u3001\u30de\u30b7\u30f3\u3092\u518d\u8d77\u52d5\u3059\u308b\u3068\u7121\u52b9\u5316\u3055\u308c\u3066\u3057\u307e\u3046\u5834\u5408\u304c\u3042\u308b\u306e\u3067\u3001\u305d\u306e\u5834\u5408\u306f\u30b5\u30fc\u30d3\u30b9\u3068\u3057\u3066\u767b\u9332\u3057\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u30b5\u30fc\u30d3\u30b9\u3092\u6709\u52b9\u5316\u3059\u308b\u30b7\u30a7\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,4]; title: ; notranslate\" title=\"\">\r\n$ vi \/home\/ubuusr01\/bin\/wakeonlan.sh\r\n#!\/bin\/sh\r\n\/sbin\/ethtool -s enp0s25 wol g\r\n$ chmod 755 \/home\/ubuusr01\/bin\/wakeonlan.sh\r\n<\/pre>\n<p>\u30b5\u30fc\u30d3\u30b9\u306b\u767b\u9332\u3059\u308b\u305f\u3081\u3001systemd\u306e\u30e6\u30cb\u30c3\u30c8\u5b9a\u7fa9\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\nvi \/etc\/systemd\/system\/wakeonlan.service\r\n&#x5B;Unit]\r\nDescription=Enable Wake-On-Lan\r\n\r\n&#x5B;Service]\r\nType=simple\r\nExecStart=\/home\/ubuusr01\/bin\/wakeonlan.sh\r\n\r\n&#x5B;Install]\r\nWantedBy=multi-user.target\r\n<\/pre>\n<p>\u30b5\u30fc\u30d3\u30b9\u3078\u306e\u767b\u9332\u3068\u8d77\u52d5\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ sudo systemctl daemon-reload\r\n$ sudo systemctl enable wakeonlan.service\r\n$ sudo systemctl start wakeonlan.service\r\n<\/pre>\n<h3>Windows 10\u306e\u5834\u5408<\/h3>\n<p>\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u30d1\u30cd\u30eb\uff1e\u30c7\u30d0\u30a4\u30b9\u30de\u30cd\u30fc\u30b8\u30e3\u306e\u753b\u9762\u3067\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a2\u30c0\u30d7\u30bf\u3092\u9078\u629e\u3057\u3001\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3066\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u958b\u304d\u307e\u3059\u3002\u8a73\u7d30\u8a2d\u5b9a\u306e\u30bf\u30d6\u3067\u3001Wake on LAN\u306e\u8a2d\u5b9a\u3092\u6709\u52b9\u306b\u3057\u307e\u3059\u3002\u8a2d\u5b9a\u540d\u306f\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a2\u30c0\u30d7\u30bf\u306b\u3088\u3063\u3066\u7570\u306a\u308a\u307e\u3059\u304c\u3001Wake on LAN\u95a2\u9023\u306e\u8a2d\u5b9a\u3092\u63a2\u3057\u3001Wake on LAN\u306eMagic Packet\u3067\u8d77\u52d5\u3059\u308b\u8a2d\u5b9a\u3092\u63a2\u3057\u3066\u9078\u629e\u3057\u307e\u3059\u3002\u305d\u306e\u307b\u304b\u306b\u3001\u96fb\u6e90\u7ba1\u7406\u306e\u30bf\u30d6\u3067\u300c\u3053\u306e\u30c7\u30d0\u30a4\u30b9\u3067\u3001\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u306e\u30b9\u30bf\u30f3\u30d0\u30a4\u72b6\u614b\u3092\u89e3\u9664\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u300d\u304a\u3088\u3073\u300cMagic Packet\u3067\u306e\u307f\u3001\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u306e\u30b9\u30bf\u30f3\u30d0\u30a4\u72b6\u614b\u89e3\u9664\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u300d\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u307e\u3059\u3002<\/p>\n<h2>\u8d77\u52d5\u3059\u308b\u30de\u30b7\u30f3\u306eMAC\u30a2\u30c9\u30ec\u30b9\u3092\u53ce\u96c6<\/h2>\n<p>ip a\u30b3\u30de\u30f3\u30c9\u7b49\u3067\u3001\u8d77\u52d5\u3059\u308b\u30de\u30b7\u30f3\u306eMAC\u30a2\u30c9\u30ec\u30b9\u3092\u78ba\u8a8d\u3057\u3066\u3001\u63a7\u3048\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ ip a\r\n<\/pre>\n<h2>Wake on LAN\u7528\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>wakeonlan\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ sudo apt install wakeonlan\r\n<\/pre>\n<h2>Wake on LAN\u3067\u30ea\u30e2\u30fc\u30c8\u306e\u30de\u30b7\u30f3\u3092\u8d77\u52d5<\/h2>\n<p>wakeonlan\u30b3\u30de\u30f3\u30c9\u306e\u5f15\u6570\u306b\u8d77\u52d5\u3059\u308b\u30de\u30b7\u30f3\u306eMAC\u30a2\u30c9\u30ec\u30b9\u3092\u6307\u5b9a\u3057\u3066\u3001\u30ea\u30e2\u30fc\u30c8\u306e\u30de\u30b7\u30f3\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001MAC\u30a2\u30c9\u30ec\u30b9\u304c\u300cXX:XX:XX:XX:XX:XX\u300d\u306e\u5834\u5408\u306e\u4f8b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ wakeonlan XX:XX:XX:XX:XX:XX\r\n<\/pre>\n<p>1\u56de\u3067\u8d77\u52d5\u3057\u306a\u3044\u3053\u3068\u304c\u305f\u307e\u306b\u3042\u308b\u306e\u3067\u3001\u8d77\u52d5\u3057\u306a\u3044\u5834\u5408\u306f\u3001\u4f55\u5ea6\u304b\u30ea\u30c8\u30e9\u30a4\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>Ubuntu\u3088\u308a\u3001Wake on LAN\u3092\u4f7f\u7528\u3057\u3066\u3001\u4ed6\u306e\u30de\u30b7\u30f3\u3092\u8d77\u52d5\u53ef\u80fd\u306a\u74b0\u5883\u3092\u69cb\u7bc9\u3057\u307e\u3057\u305f\u3002<\/p>\n<h2>\u95a2\u9023\u8a18\u4e8b<\/h2>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/14025\" ><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\u3011Wake on Lan\u3092\u4f7f\u7528\u3057\u3066\u30b5\u30fc\u30d0\u3092\u8d77\u52d5\u3059\u308b\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2018\/06\/fia0000001-150x150.gif\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Wake on Lan\u3092\u4f7f\u7528\u3057\u3066\u30b5\u30fc\u30d0\u3092\u8d77\u52d5\u3059\u308b\uff01<\/div><div class=\"substr\">Wake on Lan\u3092\u4f7f\u7528\u3057\u3066\u30b5\u30fc\u30d0\u3092\u8d77\u52d5\u3059\u308b\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu\u3088\u308a\u3001Wake on Lan\u3067\u30ea\u30e2\u30fc\u30c8\u306e\u30de\u30b7\u30f3\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":642,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[96],"tags":[51,274,425],"class_list":["post-1430","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wake-on-lan","tag-ubuntu","tag-ubuntu-desktop","tag-wake-on-lan"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/1430","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=1430"}],"version-history":[{"count":1,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/1430\/revisions"}],"predecessor-version":[{"id":14033,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/1430\/revisions\/14033"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media\/642"}],"wp:attachment":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media?parent=1430"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=1430"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=1430"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}