{"id":1806,"date":"2023-09-15T10:58:54","date_gmt":"2023-09-15T02:58:54","guid":{"rendered":"http:\/\/blog.xtaa.cn\/?p=1806"},"modified":"2023-09-15T12:48:08","modified_gmt":"2023-09-15T04:48:08","slug":"%e9%80%9a%e8%bf%87%e7%bd%91%e7%bb%9c%e5%94%a4%e9%86%92wol%e5%ae%9e%e7%8e%b0%e8%af%ad%e9%9f%b3%e5%bc%80%e6%9c%ba","status":"publish","type":"post","link":"http:\/\/blog.xtaa.cn\/index.php\/2023\/09\/15\/%e9%80%9a%e8%bf%87%e7%bd%91%e7%bb%9c%e5%94%a4%e9%86%92wol%e5%ae%9e%e7%8e%b0%e8%af%ad%e9%9f%b3%e5%bc%80%e6%9c%ba\/","title":{"rendered":"\u901a\u8fc7\u7f51\u7edc\u5524\u9192(WOL)\u5b9e\u73b0\u8bed\u97f3\u5f00\u673a-\u601d\u8def"},"content":{"rendered":"\n<p>\u5982\u4eca\u5927\u591a\u6570\u7535\u8111\u3001\u7b14\u8bb0\u672c\u3001NAS\u3001\u751a\u81f3\u662f\u6253\u5370\u673a\u7b49\u8bbe\u5907\u90fd\u652f\u6301\u300c\u7f51\u7edc\u5524\u9192\u300d(WOL \/ Wake On Lan) \u529f\u80fd\uff0c\u76f4\u63a5\u901a\u8fc7\u53d1\u9001\u7f51\u7edc\u547d\u4ee4\uff0c\u5373\u53ef\u5b9e\u73b0\u8fdc\u7a0b\u5f00\u673a\u64cd\u4f5c\uff0c\u5e73\u65f6\u81ea\u5df1\u7684\u7535\u8111\u505a\u7684\u5f88\u9690\u853d\uff0c\u6bcf\u6b21\u5f00\u673a\u4e0d\u65b9\u4fbf\uff0c\u5c31\u5229\u7528 OpenWRT \u63d0\u4f9b\u7684\u7f51\u7edc\u5524\u9192\u5b9e\u73b0\u624b\u673a\u8bed\u97f3\u8fdc\u7a0b\u5f00\u673a\u3002<\/p>\n\n\n\n<p>\u9996\u5148\u628a\u4f60\u7684\u7535\u8111\u5728BIOS\u4e0a\u8bbe\u7f6e\u597d\u7f51\u7edc\u5524\u9192\uff08\u8bbe\u7f6e\u65f6\u8bb0\u4f4fmac\u5730\u5740\uff0c\u4e00\u822c\u8fd8\u4f1a\u6709\u5524\u9192\u4f7f\u7528\u7684\u547d\u4ee4\uff09<\/p>\n\n\n\n<p>\u4f7f\u7528 SSH \u767b\u5f55\u5230OpenWRT\u7ec8\u7aef\uff0c\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\u7f51\u7edc\u5524\u9192\u6240\u9700\u7684\u7a0b\u5e8f\u4f9d\u8d56\u548c luci \u754c\u9762\uff0c\u63d0\u4f9b\u7684 WOL \u548c Etherwake \u662f\u5b9e\u73b0\u7f51\u7edc\u5524\u9192\u7684\u4e3b\u8981\u4f9d\u8d56\uff0cluci-app-wol \u4e0e luci-i18n-wol-zh-cn \u5206\u522b\u4e3a\u4e3b\u7a0b\u5e8f\u548c\u6c49\u5316\u5305<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>opkg update\r\nopkg install wol etherwake\r\nopkg install luci-app-wol luci-i18n-wol-zh-cn\n\n<\/code><\/pre>\n\n\n\n<p>\u8fdb\u5165LUCI\u7ba1\u7406\u754c\u9762\u627e\u5230\u7f51\u7edc\u5524\u9192\uff0c\u5728\u7f51\u7edc\u5524\u9192\u63d2\u4ef6\u5904\u9009\u62e9\u7f51\u7edc\u63a5\u53e3\u662f\u6307\u8bbe\u5907\u8fde\u63a5\u8def\u7531\u7684 LAN \u53e3\uff0c\u63a5\u7740\u6839\u636e MAC \u5730\u5740\u9009\u62e9\u8981\u5524\u9192\u7684\u8bbe\u5907\uff0c\u9009\u62e9\u5b8c\u6210\u70b9\u51fb\u201c\u5524\u9192\u4e3b\u673a\u201d\uff0c\u6210\u529f\u63d0\u793a Sendto worked ! 116<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u8bbe\u7f6e\u597d\u540e\u5c1d\u8bd5\u5524\u9192\u6ca1\u6709\u95ee\u9898\u540e\uff0c\u518d\u8bbe\u7f6e\u624b\u673a\u4e0a\u8bed\u97f3\u5524\u9192<\/p>\n\n\n\n<p>\u5728 <strong>\u82f9\u679c\u624b\u673a \u4e0a\u8bbe\u7f6e Siri \u8bed\u97f3\u5524\u9192\uff0c\u6253\u5f00\u5feb\u6377\u6307\u4ee4\uff0c\u65b0\u5efa\u901a\u8fc7 SSH \u8fd0\u884c\u811a\u672c\uff08SSH\u8fde\u63a5openwrt\uff09\uff0c\u8bbe\u7f6e\u5feb\u6377\u6307\u4ee4\u540d\u79f0<\/strong>\uff0c\u6bd4\u5982\uff1a\u6253\u5f00\u7535\u8111\uff0c\u5e76\u5c06 \/usr\/bin\/etherwake \u6574\u53e5\u547d\u4ee4\u590d\u5236\u7c98\u8d34\u5230\u7b2c\u4e00\u884c\uff0c\u4e3b\u673a\u5730\u5740\u8bbe\u7f6e\u8def\u7531\u5730\u5740\uff0c\u7aef\u53e3\u9ed8\u8ba4\uff0c\u586b\u5199\u7528\u6237\u548c\u5bc6\u7801\uff0c\u7136\u540e\u70b9\u51fb\u53f3\u4e0b\u89d2\u7684\u4e09\u89d2\u5f62\u8fd0\u884c\u6d4b\u8bd5\uff0c\u6b63\u5e38\u4e5f\u4f1a\u63d0\u793a\uff1aSendto worked ! 116<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u5524\u9192\u547d\u4ee4\uff1a\/usr\/bin\/etherwake -D -i \"br-lan\" \"\u4f60\u8bbe\u5907\u7684MAC\u5730\u5740\"\r\n\u4e3b\u673a\u5730\u5740\uff1a\u8def\u7531\u5668\u5730\u5740\r\n\u7aef\u53e3\u9ed8\u8ba4\uff1a22\r\n\u7528\u6237\u9ed8\u8ba4\uff1aroot\r\n\u5bc6\u7801\uff1a\u4f60\u8def\u7531\u5668\u7684\u5bc6\u7801\uff0c\u6ca1\u6709\u8bbe\u7f6e\uff0c\u53bb\u8bbe\u7f6e\u4e00\u4e2a<\/code><\/pre>\n\n\n\n<p>\u73b0\u5728\u4f60\u53ef\u4ee5\u5728\u624b\u673a\u4e0a\u8bed\u97f3\u8bf4\u4e0a\u9762\u8bbe\u7f6e\u7684\u6307\u4ee4\u540d\u79f0\u201c\u6253\u5f00\u7535\u8111\u201d\u6765\u5f00\u673a\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4eca\u5927\u591a\u6570\u7535\u8111\u3001\u7b14\u8bb0\u672c\u3001NAS\u3001\u751a\u81f3\u662f\u6253\u5370\u673a\u7b49\u8bbe\u5907\u90fd\u652f\u6301\u300c\u7f51\u7edc\u5524\u9192\u300d(WOL \/ Wake On Lan) \u529f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-1806","post","type-post","status-publish","format-standard","hentry","category-11"],"_links":{"self":[{"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/posts\/1806","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1806"}],"version-history":[{"count":4,"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/posts\/1806\/revisions"}],"predecessor-version":[{"id":1813,"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/posts\/1806\/revisions\/1813"}],"wp:attachment":[{"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1806"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1806"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.xtaa.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1806"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}