Problems with Wake on LAN and e1000e

gerhau

New Member
Jul 29, 2024
15
1
3
Hello together,

I am using Proxmox PVE 9.1.4 with a Lenovo ThinkStation P330 / M920q. It is equipped with an Intel Corporation Ethernet Connection (7) I219-LM (rev 10) network card. Proxmox/Debian automatically uses the e1000e driver. I am now have the issue that I cannot enable Wake-on-LAN.

ethtool eno1 shows:
Code:
Settings for eno1:
        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:  1000baseT/Full
        Advertised pause frame use: Symmetric Receive-only
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        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
        Link partner advertised FEC modes: Not reported
        Speed: 1000Mb/s
        Duplex: Full
        Auto-negotiation: on
        Port: Twisted Pair
        PHYAD: 1
        Transceiver: internal
        MDI-X: off (auto)
        Supports Wake-on: pumbg
        Wake-on: g
        Current message level: 0x00000007 (7)
                               drv probe link
        Link detected: yes

/etc/modprobe.d/e1000e.conf currently contains
Code:
options e1000e WoL=1,allow_unsupported_sfp=1

/etc/udev/rules.d/70-wol.rules:
Code:
ACTION=="add", SUBSYSTEM=="net", KERNEL=="eno1", RUN+="/usr/sbin/ethtool -s eno1 wol g"

/etc/network/interfaces:
Code:
auto lo
iface lo inet loopback

iface eno1 inet manual

auto vmbr0
iface vmbr0 inet static
        address 192.168.0.3/24
        gateway 192.168.0.1
        bridge-ports eno1
        bridge-stp off
        bridge-fd 0


source /etc/network/interfaces.d/*

/etc/systemd/system/nic-offload.service
Code:
[Unit]
Description=Disable TSO/GSO safely
After=network-pre.target

[Service]
Type=oneshot
ExecStart=/usr/sbin/ethtool -K eno1 tso off gso off gro off

[Install]
WantedBy=multi-user.target

/etc/systemd/system/wol-shutdown.service
Code:
[Unit]
Description=Force Wake-on-LAN before poweroff
Before=shutdown.target reboot.target halt.target

[Service]
Type=oneshot
ExecStart=/usr/sbin/ethtool -s eno1 wol g

[Install]
WantedBy=halt.target reboot.target shutdown.target

It seems to me that the LAN card is not powered after shutdown. When I boot Windows 11 on the machine, Wake-on-LAN works. During some tests, I was able in very rare cases to boot Proxmox via Wake-on-LAN. After rebooting, it no longer worked afterwards, even though I did not change any configuration. What can I do to make Wake-on-LAN work reliably with Proxmox?

Thank you for your support!
 
Last edited: