{"id":191,"date":"2015-04-03T12:20:53","date_gmt":"2015-04-03T04:20:53","guid":{"rendered":"http:\/\/owemeawe.com\/?p=191"},"modified":"2016-09-11T09:44:11","modified_gmt":"2016-09-11T09:44:11","slug":"linux%e7%bd%91%e5%8d%a1%e5%bc%80%e5%90%af%e8%bf%9c%e7%a8%8b%e5%94%a4%e9%86%92%e6%a8%a1%e5%bc%8f","status":"publish","type":"post","link":"https:\/\/peloo.net\/?p=191","title":{"rendered":"Linux\u7f51\u5361\u5f00\u542f\u8fdc\u7a0b\u5524\u9192\u6a21\u5f0f"},"content":{"rendered":"<p>\u4e00\u3001\u7b80\u4ecb<\/p>\n<p>\u5982\u679c\u4f60\u5bb6\u91cc\u7535\u8111\u7684\u51fa\u53e3IP\u662f\u516c\u7f51IP\uff0c\u90a3\u4e48\u4f60\u53ef\u4ee5\u5728\u529e\u516c\u5ba4\u6216\u5bb6\u5ead\u4e4b\u5916\u7684\u7f51\u7edc\u8fdc\u7a0b\u5524\u9192\u5bb6\u5ead\u4e2d\u7684\u8ba1\u7b97\u673a\uff0c\u5f53\u7136\uff0c\u8fd9\u9700\u8981\u5f88\u591a\u7684\u8bbe\u7f6e\u624d\u80fd\u5b8c\u6210\uff0c\u5176\u4e2d\u4e00\u4e2a\u5f88\u91cd\u8981\u7684\u8bbe\u7f6e\u5c31\u662f\u5f00\u542f\u4f60\u7535\u8111\u7f51\u5361\u7684\u81ea\u52a8\u5524\u9192\u529f\u80fd\u3002\u4e0b\u9762\u4ee5Linux\u4e3b\u673a\u4e3a\u4f8b\uff0c\u6765\u8bf4\u660e\u8bbe\u7f6e\u65b9\u6cd5\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u4e8c\u3001\u8bbe\u7f6e\u65b9\u6cd5<\/p>\n<p>\u65b9\u6cd5\u4e00\uff1a\u5feb\u6377\u8bbe\u7f6e\uff0c\u4f46\u662f\u91cd\u542f\u540e\u5931\u6548<\/p>\n<p># ethtool -s eth0 wol g<\/p>\n<p>\u518d\u7528 ethtool\u547d\u4ee4\u8fdb\u884c\u67e5\u770b,\u4f1a\u53d1\u73b0:<br \/>\nWake-on: g<\/p>\n<p>OK\uff0c\u76ee\u6807\u673a\u5668\u7684\u7f51\u5361\u5df2\u7ecf\u652f\u6301\u4e86\u8fdc\u7a0b\u5f00\u673a\uff0c\u4e0b\u9762\u6211\u4eec\u5f97\u5230\u5b83\u7684\u672c\u5730MAC\u5730\u5740:<br \/>\n\u5f53\u673a\u5668\u91cd\u542f\u540e\uff0ceth0\u7684\u8bbe\u7f6e\u53c8\u4f1a\u56de\u590d\u5230Wake-on: d \u72b6\u6001,<\/p>\n<p>\u65b9\u6cd5\u4e8c\uff1a\u6c38\u4e45\u5f00\u542f\u5524\u9192\u6a21\u5f0f<\/p>\n<p>\u7f16\u8f91\/etc\/sysconfig\/network-scripts\/ifcfg-eth0<br \/>\n\uff08eth0\u7f51\u5361\u7684\u914d\u7f6e\u6587\u4ef6\uff09\uff0c\u6dfb\u52a0\u4e0a\u4e00\u884c\uff1a<br \/>\nETHTOOL_OPTS=\u201dwol g\u201d<\/p>\n<p>wol\u7684\u53d6\u503c\u9ed8\u8ba4\u662fd,\u542b\u4e49\u662fdisable<br \/>\n\u4fee\u6539\u540e\u7684\u503c\u4e3ag,\u542b\u4e49\u662fWake on MagicPacket(tm)<\/p>\n<p>\u5b83\u8fd8\u6709\u51e0\u4e2a\u53d6\u503c\uff0c\u5206\u522b\u662f\uff1a<br \/>\np\u00a0\u00a0Wake on phy activity<br \/>\nu\u00a0\u00a0Wake on unicast messages<br \/>\nm\u00a0\u00a0Wake on multicast messages<br \/>\nb\u00a0\u00a0Wake on broadcast messages<br \/>\na\u00a0\u00a0Wake on ARP<\/p>\n<p>&nbsp;<\/p>\n<p>\u4e09\u3001\u901a\u5e38Linux\u4e3b\u673a\u8bbe\u7f6e\u597d\u8fdc\u7a0b\u5524\u9192\u529f\u80fd\u540e\uff0c\u6709\u4e2a\u8be1\u5f02\u7684\u73b0\u8c61\uff0c\u5c31\u662f\u8fdc\u7a0b\u767b\u5f55\u5bb6\u5eadLinux\u4e3b\u673a\u5e76\u6267\u884c\u5173\u673a\u540e\uff0cLinux\u4e3b\u673a\u5e76\u6ca1\u6709\u5173\u95ed\uff0c\u800c\u662f\u91cd\u542f\uff0c\u9700\u8981\u7b2c\u4e8c\u6b21\u53d1\u9001\u5173\u673a\u4fe1\u53f7\u624d\u80fd\u771f\u6b63\u5173\u673a\uff0c\u6b64\u524d\u6709\u6bb5\u65f6\u95f4\u4ee5\u4e3a\u8fd9\u662f\u4e2abug\uff0c\u7ea0\u7ed3\u4e86\u597d\u4e45\uff0c\u73b0\u5728\u770b\u6765\uff0c\u662f\u4e2a\u53cb\u597d\u7684\u4f53\u9a8c\uff0c\u5e94\u8be5\u662f\u9632\u6b62\u8fdc\u7aef\u7528\u6237\u7684\u610f\u5916\u5173\u673a\u64cd\u4f5c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u7b80\u4ecb \u5982\u679c\u4f60\u5bb6\u91cc\u7535\u8111\u7684\u51fa\u53e3IP\u662f\u516c\u7f51IP\uff0c\u90a3\u4e48\u4f60\u53ef\u4ee5\u5728\u529e\u516c\u5ba4\u6216\u5bb6\u5ead\u4e4b\u5916\u7684\u7f51\u7edc\u8fdc\u7a0b\u5524\u9192\u5bb6\u5ead\u4e2d\u7684\u8ba1\u7b97\u673a\uff0c\u5f53\u7136\uff0c\u8fd9\u9700\u8981\u5f88\u591a\u7684\u8bbe\u7f6e\u624d\u80fd\u5b8c\u6210\uff0c\u5176\u4e2d\u4e00\u4e2a\u5f88\u91cd\u8981\u7684\u8bbe\u7f6e\u5c31\u662f\u5f00\u542f\u4f60\u7535\u8111\u7f51\u5361\u7684\u81ea\u52a8\u5524\u9192\u529f\u80fd\u3002\u4e0b\u9762\u4ee5Linux\u4e3b\u673a\u4e3a\u4f8b\uff0c\u6765\u8bf4\u660e\u8bbe\u7f6e\u65b9\u6cd5\u3002 &nbsp; \u4e8c\u3001\u8bbe\u7f6e\u65b9\u6cd5 \u65b9\u6cd5\u4e00\uff1a\u5feb\u6377\u8bbe\u7f6e\uff0c\u4f46\u662f\u91cd\u542f\u540e\u5931\u6548 # ethtool -s eth0 wol g \u518d\u7528 ethtool\u547d\u4ee4\u8fdb\u884c\u67e5\u770b,\u4f1a\u53d1\u73b0: Wake-on: g OK\uff0c\u76ee\u6807\u673a\u5668\u7684\u7f51\u5361\u5df2\u7ecf\u652f\u6301\u4e86\u8fdc\u7a0b\u5f00\u673a\uff0c\u4e0b\u9762\u6211\u4eec\u5f97\u5230\u5b83\u7684\u672c\u5730MAC\u5730\u5740: \u5f53\u673a\u5668\u91cd\u542f\u540e\uff0ceth0\u7684\u8bbe\u7f6e\u53c8\u4f1a\u56de\u590d\u5230Wake-on: d \u72b6\u6001, \u65b9\u6cd5\u4e8c\uff1a\u6c38\u4e45\u5f00\u542f\u5524\u9192\u6a21\u5f0f \u7f16\u8f91\/etc\/sysconfig\/network-scripts\/ifcfg-eth0 \uff08eth0\u7f51\u5361\u7684\u914d\u7f6e\u6587\u4ef6\uff09\uff0c\u6dfb\u52a0\u4e0a\u4e00\u884c\uff1a ETHTOOL_OPTS=\u201dwol g\u201d wol\u7684\u53d6\u503c\u9ed8\u8ba4\u662fd,\u542b\u4e49\u662fdisable \u4fee\u6539\u540e\u7684\u503c\u4e3ag,\u542b\u4e49\u662fWake on MagicPacket(tm) \u5b83\u8fd8\u6709\u51e0\u4e2a\u53d6\u503c\uff0c\u5206\u522b\u662f\uff1a p\u00a0\u00a0Wake on phy activity u\u00a0\u00a0Wake on unicast messages m\u00a0\u00a0Wake on multicast messages b\u00a0\u00a0Wake on broadcast messages a\u00a0\u00a0Wake on ARP &nbsp; \u4e09\u3001\u901a\u5e38Linux\u4e3b\u673a\u8bbe\u7f6e\u597d\u8fdc\u7a0b\u5524\u9192\u529f\u80fd\u540e\uff0c\u6709\u4e2a\u8be1\u5f02\u7684\u73b0\u8c61\uff0c\u5c31\u662f\u8fdc\u7a0b\u767b\u5f55\u5bb6\u5eadLinux\u4e3b\u673a\u5e76\u6267\u884c\u5173\u673a\u540e\uff0cLinux\u4e3b\u673a\u5e76\u6ca1\u6709\u5173\u95ed\uff0c\u800c\u662f\u91cd\u542f\uff0c\u9700\u8981\u7b2c\u4e8c\u6b21\u53d1\u9001\u5173\u673a\u4fe1\u53f7\u624d\u80fd\u771f\u6b63\u5173\u673a\uff0c\u6b64\u524d\u6709\u6bb5\u65f6\u95f4\u4ee5\u4e3a\u8fd9\u662f\u4e2abug\uff0c\u7ea0\u7ed3\u4e86\u597d\u4e45\uff0c\u73b0\u5728\u770b\u6765\uff0c\u662f\u4e2a\u53cb\u597d\u7684\u4f53\u9a8c\uff0c\u5e94\u8be5\u662f\u9632\u6b62\u8fdc\u7aef\u7528\u6237\u7684\u610f\u5916\u5173\u673a\u64cd\u4f5c\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-191","post","type-post","status-publish","format-standard","hentry","category-linux"],"aioseo_notices":[],"brizy_media":[],"_links":{"self":[{"href":"https:\/\/peloo.net\/index.php?rest_route=\/wp\/v2\/posts\/191","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/peloo.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/peloo.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/peloo.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/peloo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=191"}],"version-history":[{"count":3,"href":"https:\/\/peloo.net\/index.php?rest_route=\/wp\/v2\/posts\/191\/revisions"}],"predecessor-version":[{"id":630,"href":"https:\/\/peloo.net\/index.php?rest_route=\/wp\/v2\/posts\/191\/revisions\/630"}],"wp:attachment":[{"href":"https:\/\/peloo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/peloo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=191"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/peloo.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}