我想设置网络唤醒,两台电脑通过交换机连接。
这是 eth0 的配置,在 BIOS 中我找不到有关网络唤醒的任何信息。
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Link partner advertised pause frame use: Symmetric
Link partner advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000033 (51)
drv probe ifdown ifup
Link detected: yes
关闭电脑后,我使用不同的工具发送魔术包,但没有任何反应。有什么建议吗?
答案1
您的卡已受支持,现在配置网络唤醒:
安装
ethtool
sudo apt-get install ethtool
编辑
/etc/rc.local
以在该行之前添加此行exit 0
:ethtool -s eth0 wol g
找出你的网卡的 MAC 地址(
eth
用你的接口名称替换,,,eth0
..eth1
):ifconfig eth | grep "HWaddr" | awk '{print $5}'
关闭机器。你应该能够使用以下命令将其唤醒:
wakeonlan your_mac
答案2
您需要使用 root 权限输入以下命令来安装 ethtool:
apt-get install ethtool
下一步是通过输入以下命令在系统中启用局域网唤醒:
ethtool -s eth0 wol g
我描述了这样的场景,接下来有几个可选的踩我的博客