這兩天終於受不了上網找了資料,其實早有人完成這些動作,看起來我的主機應該也做的到,先把這些動作記錄起來再實作看看。
- 查看主機網卡是否支持網絡喚醒功能:sudo ethtool eth0
顯示畫面類似:要查看wake-on:那項是否支援
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Link partner advertised link modes: Not reported
Link partner advertised pause frame use: No
Link partner advertised auto-negotiation: No
Speed: 100Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
MDI-X: Unknown
Supports Wake-on: umbg
Wake-on: g ------>g 表示已啟動,d 表示禁用
Current message level: 0x00000007 (7)
Link detected: yes
如果網絡喚醒功能被禁用,則需要用下面的命令開啟網絡喚醒功能:
sudo ethtool -s eth0 wol g - 提取主機網卡MAC位址
- 在本地端安裝遠端喚醒套件:sudo apt-get install wakeonlan
- 本地端執行遠端喚醒命令:wakeonlan 12:34:56:78:90:11(遠端網卡MAC位址)
參考資料:
http://www.pyoix.com/a/789.html
http://w3.sy3es.tnc.edu.tw/wiki/index.php/遠端開機