电脑A:远程启动电脑。
电脑B:远程被启动的电脑。
一、ubuntu设置(电脑B)
1. 重新启动ubuntu,并进到BIOS设定:
Power Management
-----》Low Power Mode 设置为不启动,否则电源关闭后网卡不工作
-----》Remote Wake Up 设置为Enable,开启远程唤醒
2. 储存并进入ubuntu
3. sudo apt-get install ethtool
4.查看网卡是否支持远程唤醒:sudo ethtool eth0
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pumbg 有些时候这个东西可能显示为 g
Wake-on: g(g表示已启动,d表示禁用)
Current message level: 0x00000033 (51)
Link detected: yes
5.如果唤醒功能被禁用,用这个命令开启:
ethtool -s eth0 wol g
二、启动者(另一台运行ubuntu的电脑A):
1.sudo spt-get install wakeonlan
2.wakeonlan 第一台ubuntu电脑的网卡的MAC地址,例如:
wakeonlan 00:16:k5:64:A9:68
阅读(883) | 评论(0) | 转发(0) |