{"id":90597,"date":"2024-03-09T14:14:46","date_gmt":"2024-03-09T06:14:46","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=90597"},"modified":"2024-03-09T14:14:46","modified_gmt":"2024-03-09T06:14:46","slug":"linux-net","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux-net.html","title":{"rendered":"Linux\u4e0b \u65e0\u7ebf\u7f51\u5361\u914d\u7f6e\u65e0\u7ebf\u5524\u9192\u529f\u80fd\u7684\u65b9\u6cd5"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nWake-on-LAN\uff08WOL\uff09\u662f\u4e00\u4e2a\u4ee5\u592a\u7f51\u6807\u51c6\uff0c\u5b83\u5141\u8bb8\u670d\u52a1\u5668\u901a\u8fc7\u4e00\u4e2a\u7f51\u7edc\u6d88\u606f\u800c\u88ab\u6253\u5f00\u3002\u4f60\u9700\u8981\u53d1\u9001\u4e00\u4e2a\u201c\u9b54\u6cd5\u6570\u636e\u5305\u201d\u5230\u652f\u6301\u7f51\u7edc\u5524\u9192\u7684\u4ee5\u592a\u7f51\u5361\u548c\u4e3b\u677f\uff0c\u4ee5\u4fbf\u6253\u5f00\u88ab\u5524\u9192\u7684\u7cfb\u7edf\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"<\/a><\/p>\n

\u65e0\u7ebf\u5524\u9192wireless wake-on-lan<\/rt><\/ruby>\uff08WoWLAN \u6216 WoW\uff09\u5141\u8bb8 Linux \u7cfb\u7edf\u8fdb\u5165\u4f4e\u8017\u7535\u6a21\u5f0f\u7684\u60c5\u51b5\u4e0b\u4fdd\u6301\u65e0\u7ebf\u7f51\u5361\u5904\u4e8e\u6fc0\u6d3b\u72b6\u6001\uff0c\u4f9d\u7136\u4e0e\u70ed\u70b9\u8fde\u63a5\u3002\u8fd9\u7bc7\u6559\u7a0b\u6f14\u793a\u4e86\u5982\u4f55\u5728\u4e00\u53f0\u5b89\u88c5\u65e0\u7ebf\u7f51\u5361\u7684 Linux \u7b14\u8bb0\u672c\u6216\u684c\u9762\u7535\u8111\u4e0a\u542f\u7528 WoWLAN \/ WoW \u6a21\u5f0f\u3002\u8bf7\u6ce8\u610f\uff0c\u4e0d\u662f\u6240\u6709\u7684\u65e0\u7ebf\u7f51\u5361\u548c Linux \u9a71\u52a8\u7a0b\u5e8f\u90fd\u652f\u6301 WoWLAN\u3002<\/p>\n

\u8bed\u6cd5<\/strong><\/div>\n

\u5728 Linux \u7cfb\u7edf\u4e0a\uff0c\u4f60\u9700\u8981\u4f7f\u7528 iw \u547d\u4ee4\u6765\u67e5\u770b\u548c\u64cd\u4f5c\u65e0\u7ebf\u8bbe\u5907\u53ca\u5176\u914d\u7f6e\u3002 \u5176\u683c\u5f0f\u4e3a\uff1a<\/p>\n

\u00a0iw command\r\n iw [options] command<\/pre>\n
\u5217\u51fa\u6240\u6709\u7684\u65e0\u7ebf\u8bbe\u5907\u53ca\u5176\u529f\u80fd<\/strong><\/div>\n

\u8f93\u5165\u4e0b\u9762\u547d\u4ee4\uff1a<\/p>\n

$ iw list\r\n$ iw list | more\r\n$ iw dev\r\nphy#0\r\nInterface wlp3s0\r\nifindex 3\r\nwdev 0x1\r\naddr 6c:88:14:ff:36:d0\r\ntype managed\r\nchannel 149 (5745 MHz)\uff0cwidth\uff1a 40 MHz\uff0c center1\uff1a 5755 MHz\r\ntxpower 15.00 dBm<\/pre>\n

\u8bf7\u8bb0\u4e0b\u8fd9\u4e2a phy0\u3002<\/p>\n

\u67e5\u770b\u65e0\u7ebf\u5524\u9192\u7684\u5f53\u524d\u72b6\u6001<\/strong><\/div>\n

\u6253\u5f00\u7ec8\u7aef\u5e76\u8f93\u5165\u4e0b\u9762\u547d\u4ee4\u6765\u67e5\u770b\u65e0\u7ebf\u7f51\u7edc\u7684\u72b6\u6001\uff1a<\/p>\n

$ iw phy0 wowlan show\r\nWoWLAN is disabled<\/pre>\n
\u5982\u4f55\u542f\u7528\u65e0\u7ebf\u5524\u9192<\/strong><\/div>\n

\u542f\u7528\u7684\u8bed\u6cd5\u4e3a\uff1a<\/p>\n

sudo iw phy {phyname} wowlan enable {option}<\/pre>\n

\u6bd4\u5982\uff0c\u6211\u60f3\u4e3a phy0\u00a0\u5f00\u542f\u65e0\u7ebf\u5524\u9192\uff1a<\/p>\n

$ sudo iw phy0 wowlan enable any\r\n$ iw phy0 wowlan show<\/pre>\n

\u7ed3\u679c\u4e3a\uff1a<\/p>\n

WoWLAN is enabled\uff1a\r\n* wake up on disconnect\r\n* wake up on magic packet<\/pre>\n
\u5982\u4f55\u7981\u7528\u65e0\u7ebf\u5524\u9192\uff1f<\/strong><\/div>\n

\u8bed\u6cd5\u4e3a\uff1a<\/p>\n

$ sudo phy {phyname} wowlan disable\r\n$ sudo phy0 wowlan disable<\/pre>\n

via: https:\/\/www.cyberciti.biz\/faq\/configure-wireless-wake-on-lan-for-linux-wifi-wowlan-card\/<\/a><\/p>\n

\u4f5c\u8005\uff1aVivek Gite<\/a> \u8bd1\u8005\uff1alujun9972<\/a> \u6821\u5bf9\uff1awxy<\/a><\/p>\n

\u672c\u6587\u7531 LCTT<\/a> \u539f\u521b\u7f16\u8bd1\uff0cLinux\u4e2d\u56fd<\/a> \u8363\u8a89\u63a8\u51fa<\/p>\n

\n

\u539f\u6587\u6765\u81ea\uff1ahttps:\/\/linux.cn\/article-9151-1.html<\/a><\/p>\n

\u672c\u6587\u5730\u5740\uff1ahttp:\/\/lrxjmw.cn\/linux-net.html<\/a>\u7f16\u8f91\uff1a\u4efb\u7ef4\u56fd\uff0c\u5ba1\u6838\u5458\uff1a\u9004\u589e\u5b9d<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

\u5bfc\u8bfb Wake-on-LAN\uff08WOL\uff09\u662f\u4e00\u4e2a\u4ee5\u592a\u7f51\u6807\u51c6\uff0c\u5b83\u5141\u8bb8\u670d\u52a1\u5668\u901a\u8fc7\u4e00\u4e2a\u7f51\u7edc\u6d88\u606f\u800c\u88ab\u6253\u5f00\u3002\u4f60\u9700\u8981\u53d1\u9001\u4e00\u4e2a\u201c […]<\/p>\n","protected":false},"author":63,"featured_media":90247,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-90597","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/90597","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=90597"}],"version-history":[{"count":4,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/90597\/revisions"}],"predecessor-version":[{"id":90717,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/90597\/revisions\/90717"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/90247"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=90597"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=90597"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=90597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}