{"id":430,"date":"2020-03-28T01:00:01","date_gmt":"2020-03-28T00:00:01","guid":{"rendered":"http:\/\/linuxboxen2.dk\/?p=430"},"modified":"2020-03-28T01:00:01","modified_gmt":"2020-03-28T00:00:01","slug":"aktivering-wol-i-linux","status":"publish","type":"post","link":"https:\/\/www.linuxboxen.dk\/?p=430","title":{"rendered":"Aktivering WOL i Linux"},"content":{"rendered":"<p><strong>Aktivering WOL i Linux<\/strong><br \/>\nFor at aktivere Wake on lan fra Linux skal der s\u00e6ttes information p\u00e5 netkort, f\u00f8r du lukker Linux maskinen ned. F\u00f8rst ser jeg hvad der underst\u00f8ttes af netv\u00e6rket driver:<\/p>\n<pre>$ sudo ethtool eth0\n\nSettings for eth0:\n        Supported ports: [ TP MII ]\n        Supported link modes:   10baseT\/Half 10baseT\/Full\n                                100baseT\/Half 100baseT\/Full\n                                1000baseT\/Half 1000baseT\/Full\n        Supported pause frame use: No\n        Supports auto-negotiation: Yes\n        Advertised link modes:  10baseT\/Half 10baseT\/Full\n                                100baseT\/Half 100baseT\/Full\n                                1000baseT\/Half 1000baseT\/Full\n        Advertised pause frame use: Symmetric Receive-only\n        Advertised auto-negotiation: Yes\n        Link partner advertised link modes:  10baseT\/Half 10baseT\/Full\n                                             100baseT\/Half 100baseT\/Full\n                                             1000baseT\/Full\n        Link partner advertised pause frame use: Symmetric\n        Link partner advertised auto-negotiation: Yes\n        Speed: 1000Mb\/s\n        Duplex: Full\n        Port: MII\n        PHYAD: 0\n        Transceiver: internal\n        Auto-negotiation: on\n        Supports Wake-on: pumbg\n        Wake-on: g\n        Current message level: 0x00000033 (51)\n                               drv probe ifdown ifup\n        Link detected: yes<\/pre>\n<p>Her vises mange information netspeed og andre ting. Hvad netkortet har af muligheder.<br \/>\nOg vi kan se at wake-on er type g. S\u00e5 wake on lan er muligt.<\/p>\n<pre>$ sudo ethtool -s eth1 wol g<\/pre>\n<p>Dette skal g\u00f8res, hver gang jeg lukker computeren ned, s\u00e5 jeg g\u00f8re det med et skript.<\/p>\n<pre>$ ethtool -s eth1 wol g<\/pre>\n<pre>$ root sudo chmod +x wol.sh navnet p\u00e5 skript.<\/pre>\n<p>Og nu kan jeg opdatere system s\u00e5dan at dette skript bliver k\u00f8rt i alle runlevels.<\/p>\n<pre>$ update-rc.d -f wol.sh defaults<\/pre>\n<p>for at starte maskinen med wake on lan skal jeg bruge netkort HWaddr fra en<\/p>\n<pre>$ ifconfig<\/pre>\n<pre>$ wakeonlan HWaddr fra ifconfig.\nSending magic packet to 255.255.255.255:9 with 00:18:F3:CD:78:A0<\/pre>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_430\" class=\"pvc_stats all  \" data-element-id=\"430\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/www.linuxboxen.dk\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Aktivering WOL i Linux For at aktivere Wake on lan fra Linux skal der s\u00e6ttes information p\u00e5 netkort, f\u00f8r du lukker Linux maskinen ned. F\u00f8rst ser jeg hvad der underst\u00f8ttes af netv\u00e6rket driver: $ sudo ethtool eth0 Settings for eth0: Supported ports: [ TP MII ] Supported link modes: 10baseT\/Half 10baseT\/Full 100baseT\/Half 100baseT\/Full 1000baseT\/Half 1000baseT\/Full [&hellip;]<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_430\" class=\"pvc_stats all  \" data-element-id=\"430\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/www.linuxboxen.dk\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":"","footnotes":""},"categories":[2],"tags":[],"class_list":["post-430","post","type-post","status-publish","format-standard","hentry","category-tips"],"a3_pvc":{"activated":true,"total_views":34,"today_views":0},"_links":{"self":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts\/430","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=430"}],"version-history":[{"count":0,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts\/430\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=430"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=430"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=430"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}