Einschalten tut er sich ja nicht, weil er ist ja schon eingeschaltet.

Die MAC habe ich per ip link show herausgefunden und sende sie per

Code: Alles auswählen
$ uname -a
Linux TONNE 5.10.0-13-amd64 #1 SMP Debian 5.10.106-1 (2022-03-17) x86_64 GNU/Linux
Code: Alles auswählen
$ sudo ethtool enp2s0 | grep Wake
Supports Wake-on: pumbg
Wake-on: d
Code: Alles auswählen
$ ls -l /etc/network/interfaces.d
insgesamt 4,0K
-rw-r--r-- 1 root root 63 6. Dez 2020 setup
$ cat /etc/network/interfaces.d/setup
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
Scheinbar muss man mit ethtool auf g umschalten?whisper hat geschrieben:09.04.2022 15:44:35Zu dem Thema habe ich mal vor vielen Jahren was geschrieben.
http://zockertown.de/s9y/index.php?/arc ... n-lan.html
Stichwort MagicPacket.
Code: Alles auswählen
$ sudo ethtool -s enp2s0 wol g
$ sudo ethtool enp2s0 | grep Wake
Supports Wake-on: pumbg
Wake-on: g
Code: Alles auswählen
sudo ethtool enp2s0 | grep Wake-on | grep -v Sup
Wake-on: d
Code: Alles auswählen
networkctl list
WARNING: systemd-networkd is not running, output will be incomplete.
IDX LINK TYPE OPERATIONAL SETUP
1 lo loopback n/a unmanaged
2 enp2s0 ether n/a unmanaged
3 enp3s0 ether n/a unmanaged
Du solltest so Doku wirklich sorgsamer lesen: es geht um systemd-networkd, nicht um systemd selbst. Und wenn du einen anderen Networkmanager nutzt, oder es manuell machst, interessiert dich dieser Abschnitt nicht einmal.buhtz hat geschrieben:09.04.2022 17:20:30Der Abschnitt "systemd" ist derart kurz und stichpunktartig
Weil das nicht geschieht.buhtz hat geschrieben:09.04.2022 17:20:30Ich verstehe auch nicht, warum sich das OS da einmischt und eine BIOS-Einstellung überschreibt bzw. außer Kraft setzt.
Genau das ist der Effekt, das ethtool musst Du bei/vor jedem Shutdown ausführen.buhtz hat geschrieben:Ok, temprorär geht das Aufwecken. Danach ist der Schalter aber wieder auf d
Code: Alles auswählen
$ uname -a
Linux OLAF 4.19.0-20-amd64 #1 SMP Debian 4.19.235-1 (2022-03-17) x86_64 GNU/Linux
$ sudo ethtool eno1 | grep Wake-on
Supports Wake-on: pumbg
Wake-on: g
Code: Alles auswählen
post-up /sbin/ethtool -s $IFACE wol g
post-down /sbin/ethtool -s $IFACE wol g
Code: Alles auswählen
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
post-up /sbin/ethtool -s $IFACE wol g
post-down /sbin/ethtool -s $IFACE wol g
Das deutet auch auf /etc/network/interfaces.rhHeini hat geschrieben:10.04.2022 17:44:48Schau mal hier rein, vielleicht hilfts: viewtopic.php?t=183842&hilit=wol
Code: Alles auswählen
# The loopback network interface
auto lo
iface lo inet loopback
post-up /sbin/ethtool -s $IFACE wol g
post-down /sbin/ethtool -s $IFACE wol g
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug enp1s7
iface enp1s7 inet dhcp
# This is an autoconfigured IPv6 interface
#iface enp1s7 inet6 auto
post-up /sbin/ethtool -s $IFACE wol g
post-down /sbin/ethtool -s $IFACE wol g
buhtz hat geschrieben:12.04.2022 10:37:19Das deutet auch auf /etc/network/interfaces.
Mein "Problem" mit dieser Datei ist, dass ich deren Syntax nicht kenne.
Code: Alles auswählen
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
Ich schrieb nicht „der NetworkManager“, sondern „ein Networkmanager“. Das schrieb ich, weil ich nicht „den NetworkManager“, sondern einen beliebigen anderen Networkmanager anstelle von systemd-networkd (das seinerseits halt ein Networkmanager ist) meinte.
Code: Alles auswählen
post-up /sbin/ethtool -s enp2s0 wol g post-down /sbin/ethtool -s enp2s0 wol g #post-up /sbin/ethtool -s $IFACE wol g #post-down /sbin/ethtool -s $IFACE wol g