项目场景:
wol 远程唤醒bug
我的ubuntu 版本 22.04
内核版本5.15
问题描述
windows下可以远程唤醒,换Linux后远程唤醒失效
原因分析:
网卡为 Atheros AR8161 、 Killer E2500 等系列时,Linux 驱动需要更新,有兴趣可以看下原bug地址
验证问题
获取网卡名称
ifconfig
查看ethtool 返回
ethtool [网卡名称]
```bash
# ethtool enp3s0
Settings for enp3s0:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: Symmetric
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
MDI-X: Unknown
Current message level: 0x000060e4 (24804)
link ifup rx_err tx_err hw wol
Link detected: yes
没有 wol相关信息
解决方案:
sudo su root
cd ~
https://github.com/AndiWeiss/alx-wol.git
cd alx-wol
./install
安装后显示
root@home-server:~# ethtool enp3s0
Settings for enp3s0:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: Symmetric
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Speed: 1000Mb/s
Duplex: Full
Auto-negotiation: on
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
MDI-X: Unknown
Supports Wake-on: pg
Wake-on: pg
Current message level: 0x000060e4 (24804)
link ifup rx_err tx_err hw wol
Link detected: yes
已经发现 wake-no ,按照远程唤醒教程设置可成功唤醒