WOL Debian Stretch

Einrichten des lokalen Netzes, Verbindung zu anderen Computern und Diensten.
Antworten
jewo
Beiträge: 4
Registriert: 20.02.2018 12:38:54

WOL Debian Stretch

Beitrag von jewo » 20.02.2018 13:41:47

Hallo an alle!

Ich bin neu im Forum und habe folgende Frage: Ich versuche seit Tagen, Wake -on-LAN bei einem Desktop-Rechner unter Debian 9 anzuschalten. Ich denke, ich habe im BIOS alles, was nach WOL aussieht, korrekt aktiviert. Wenn ich mit dem ethtool die Netzwerkschnittstelle abfrage, erhalte ich

Code: Alles auswählen

ethtool enp2s0
Settings for enp2s0:
	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 Receive-only
	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
Sieht also auch eigentlich gut aus. Mir scheint es so, das Debian den Netzwerkadapter beim Herunterfahren komplett ausschaltet, weil auf der Rückseite des Rechners keine LEDs am Netzwerkadapter nach dem Runterfahren leuchten. Kann das so sein und wenn ja, wie und/oder wo kann ich Debian dazu überreden, den Netzwerkadapter nicht abzuschalten?

BenutzerGa4gooPh

Re: WOL Debian Stretch

Beitrag von BenutzerGa4gooPh » 20.02.2018 15:03:49

Willkommen im Forum!
Make it persistent
...
https://wiki.archlinux.org/index.php/Wake-on-LAN
Wenn eine Methode nicht funktioniert - die nächste bitte!

Für Fehlersuche würde ich im Journal nachsehen, bei Bedarf ein persistentes Journal konfigurieren.
https://www.digitalocean.com/community/ ... stemd-logs

Nach evtl. Konfiguration/Installation von systemd-Diensten für WoL prüfen:

Code: Alles auswählen

su -
service <Dienst> status
Edit:
Falls du Debiannetwork-manager verwendest, als Benutzer einfach entsprechende kabelgebundene Verbindung ermitteln und konfigurieren:

Code: Alles auswählen

nmcli con show
nmcli c modify "wired1" 802-3-ethernet.wake-on-lan magic
reboot, evtl. 2 x
(In Debian Testing/Buster sollte WoL per GUI konfigurierbar sein.)

Bei Problemen

Code: Alles auswählen

journalctl - b
durchsehen, irgendwas mit NetworkManager und WoL. Bei Fragen auszugsweise relevante Zeilen posten.

jewo
Beiträge: 4
Registriert: 20.02.2018 12:38:54

Re: WOL Debian Stretch

Beitrag von jewo » 20.02.2018 16:25:40

Make it persistent
...
https://wiki.archlinux.org/index.php/Wake-on-LAN
Wenn eine Methode nicht funktioniert - die nächste bitte!
Damit komm ich nicht wirklich klar...
Nach evtl. Konfiguration/Installation von systemd-Diensten für WoL prüfen:


su -
service <Dienst> status
Hier finde ich keine WOL Dienste
Edit:
Falls du Debiannetwork-manager verwendest, als Benutzer einfach entsprechende kabelgebundene Verbindung ermitteln und konfigurieren:
CODE: ALLES AUSWÄHLEN

nmcli con show
nmcli c modify "wired1" 802-3-ethernet.wake-on-lan magic
Habe ich gemacht, heisst bei mir aber "Wired connection 1" - mehrmals rebootet - kein Erfolg.
Bei Problemen
CODE: ALLES AUSWÄHLEN

journalctl - b
durchsehen, irgendwas mit NetworkManager und WoL. Bei Fragen auszugsweise relevante Zeilen posten.
Hier steht auch nichts von NetworkManager oder WOL.

Trotzdem danke erstmal für deine Mühe, aber ich glaube, da fehlen mir noch ein paar Linux-Gehirn-Windungen...(vor allem zu erstem Vorschlag)

BenutzerGa4gooPh

Re: WOL Debian Stretch

Beitrag von BenutzerGa4gooPh » 20.02.2018 16:37:40

Versuche mal so:

Code: Alles auswählen

ip link
zeigt u. a. die Netzwerkschnittstellen. Danach:

Code: Alles auswählen

nmcli connection modify enpsxyz 802-3-ethernet.wake-on-lan magic
enpsxyz musst du anpassen! Diesmal keine Anführungszeichen. Poste bitte beide Kommandoausgaben!

Das Journal kriegt nur der Superuser, fälschlicherweise oft root genannt, zu Gesicht. Also davorsetzen:

Code: Alles auswählen

su -
oder sudo journalctl -b
Da steht ganz sicher was vom Netzwerk! :wink:

Und dann teste mal nach Reboot: Mache ein 2. Terminal auf und gib dort ein:

Code: Alles auswählen

su -
journalctl -f
Und dann schicke vom 1. Terminal der aktiven Netzwerkkarte ein Magisches Paket:

Code: Alles auswählen

wol <MAC-Adresse>
MAC weißt du von ip link. Poste die Ausgaben im 2. Terminal! Kann gut sein, dass nichts passiert. Mal probieren. :wink:

Edit: Du verwaltest die Ethernetschnittstelle mit dem Netzwerkmanager oder hast schon mal mit /etc/network/interfaces rumgespielt? Am besten Datei mal posten!

jewo
Beiträge: 4
Registriert: 20.02.2018 12:38:54

Re: WOL Debian Stretch

Beitrag von jewo » 20.02.2018 17:26:13

Sehr komisch - zuerst mal das hier:

Code: Alles auswählen

bla@DebianStation:~$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
    link/ether b8:97:5a:77:13:78 brd ff:ff:ff:ff:ff:ff
bla@DebianStation:~$ nmcli connection modify enp2s0 802-3-ethernet.wake-on-lan magic
Fehler: Unbekannte Verbindung »enp2s0«.
Dann jornalctl -b

Code: Alles auswählen

sudo journalctl -b
-- Logs begin at Tue 2018-02-20 17:03:07 CET, end at Tue 2018-02-20 17:14:12 CET. --
Feb 20 17:03:07 DebianStation kernel: Linux version 4.9.0-5-amd64 (debian-kernel@lists.debian.org) (gcc version 6.3.0 20170516 (Debian 6.3.0-18) ) #1 SMP Debian 4.9.65-3+deb9u2 (2018-01
Feb 20 17:03:07 DebianStation kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-4.9.0-5-amd64 root=UUID=44b9021b-db0a-4581-b991-4430551504a9 ro quiet
Feb 20 17:03:07 DebianStation kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
Feb 20 17:03:07 DebianStation kernel: x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
Feb 20 17:03:07 DebianStation kernel: x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
Feb 20 17:03:07 DebianStation kernel: x86/fpu: xstate_offset[2]:  576, xstate_sizes[2]:  256
Feb 20 17:03:07 DebianStation kernel: x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'standard' format.
Feb 20 17:03:07 DebianStation kernel: x86/fpu: Using 'eager' FPU context switches.
Feb 20 17:03:07 DebianStation kernel: e820: BIOS-provided physical RAM map:
Feb 20 17:03:07 DebianStation kernel: BIOS-e820: [mem 0x0000000000000000-0x000000000009d7ff] usable
Feb 20 17:03:07 DebianStation kernel: BIOS-e820: [mem 0x000000000009d800-0x000000000009ffff] reserved
Feb 20 17:03:07 DebianStation kernel: BIOS-e820: [mem 0x00000000000e0000-0x00000000000fffff] reserved
Feb 20 17:03:07 DebianStation kernel: BIOS-e820: [mem 0x0000000000100000-0x000000001fffffff] usable
Feb 20 17:03:07 DebianStation kernel: BIOS-e820: [mem 0x0000000020000000-0x00000000201fffff] reserved
Feb 20 17:03:07 DebianStation kernel: BIOS-e820: [mem 0x0000000020200000-0x0000000040003fff] usable
Feb 20 17:03:07 DebianStation kernel: BIOS-e820: [mem 0x0000000040004000-0x0000000040004fff] reserved
Feb 20 17:03:07 DebianStation kernel: BIOS-e820: [mem 0x0000000040005000-0x00000000d9f0dfff] usable
Feb 20 17:03:07 DebianStation kernel: BIOS-e820: [mem 0x00000000d9f0e000-0x00000000da4fffff] reserved
Feb 20 17:03:07 DebianStation kernel: BIOS-e820: [mem 0x00000000da500000-0x00000000da77ffff] ACPI NVS
Feb 20 17:03:07 DebianStation kernel: BIOS-e820: [mem 0x00000000da780000-0x00000000da784fff] ACPI data
Feb 20 17:03:07 DebianStation kernel: BIOS-e820: [mem 0x00000000da785000-0x00000000da7c7fff] ACPI NVS
Feb 20 17:03:07 DebianStation kernel: BIOS-e820: [mem 0x00000000da7c8000-0x00000000dae0efff] usable
Feb 20 17:03:07 DebianStation kernel: BIOS-e820: [mem 0x00000000dae0f000-0x00000000daff1fff] reserved
Feb 20 17:03:07 DebianStation kernel: BIOS-e820: [mem 0x00000000daff2000-0x00000000daffffff] usable
Feb 20 17:03:07 DebianStation kernel: BIOS-e820: [mem 0x00000000db800000-0x00000000df9fffff] reserved
Feb 20 17:03:07 DebianStation kernel: BIOS-e820: [mem 0x00000000f8000000-0x00000000fbffffff] reserved
Feb 20 17:03:07 DebianStation kernel: BIOS-e820: [mem 0x00000000fec00000-0x00000000fec00fff] reserved
Feb 20 17:03:07 DebianStation kernel: BIOS-e820: [mem 0x00000000fed00000-0x00000000fed03fff] reserved
Feb 20 17:03:07 DebianStation kernel: BIOS-e820: [mem 0x00000000fed1c000-0x00000000fed1ffff] reserved
Feb 20 17:03:07 DebianStation kernel: BIOS-e820: [mem 0x00000000fee00000-0x00000000fee00fff] reserved
Feb 20 17:03:07 DebianStation kernel: BIOS-e820: [mem 0x00000000ff000000-0x00000000ffffffff] reserved
Feb 20 17:03:07 DebianStation kernel: BIOS-e820: [mem 0x0000000100000000-0x000000021e5fffff] usable
Feb 20 17:03:07 DebianStation kernel: NX (Execute Disable) protection: active
Feb 20 17:03:07 DebianStation kernel: SMBIOS 2.7 present.
Feb 20 17:03:07 DebianStation kernel: DMI: BIOSTAR Group B75MU3B/B75MU3B, BIOS 4.6.5 04/25/2012
Feb 20 17:03:07 DebianStation kernel: e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
Feb 20 17:03:07 DebianStation kernel: e820: remove [mem 0x000a0000-0x000fffff] usable
Feb 20 17:03:07 DebianStation kernel: e820: last_pfn = 0x21e600 max_arch_pfn = 0x400000000
Feb 20 17:03:07 DebianStation kernel: MTRR default type: uncachable
Feb 20 17:03:07 DebianStation kernel: MTRR fixed ranges enabled:
Feb 20 17:03:07 DebianStation kernel:   00000-9FFFF write-back
Feb 20 17:03:07 DebianStation kernel:   A0000-BFFFF uncachable
Feb 20 17:03:07 DebianStation kernel:   C0000-CFFFF write-protect
Feb 20 17:03:07 DebianStation kernel:   D0000-E7FFF uncachable
Feb 20 17:03:07 DebianStation kernel:   E8000-FFFFF write-protect
Feb 20 17:03:07 DebianStation kernel: MTRR variable ranges enabled:
Feb 20 17:03:07 DebianStation kernel:   0 base 000000000 mask E00000000 write-back
Feb 20 17:03:07 DebianStation kernel:   1 base 200000000 mask FE0000000 write-back
Feb 20 17:03:07 DebianStation kernel:   2 base 0E0000000 mask FE0000000 uncachable
lines 1-50

jetzt journalctl -f nach wol im anderen Terminal:

Code: Alles auswählen

$ sudo journalctl -f
-- Logs begin at Tue 2018-02-20 17:03:07 CET. --
Feb 20 17:12:46 DebianStation dbus-daemon[987]: Activating service name='org.gnome.gedit'
Feb 20 17:12:46 DebianStation dbus-daemon[987]: Successfully activated service 'org.gnome.gedit'
Feb 20 17:14:12 DebianStation sudo[2076]:     bla : TTY=pts/0 ; PWD=/home/jens ; USER=root ; COMMAND=/bin/journalctl -b
Feb 20 17:14:12 DebianStation sudo[2076]: pam_unix(sudo:session): session opened for user root by (uid=0)
Feb 20 17:16:58 DebianStation sudo[2076]: pam_unix(sudo:session): session closed for user root
Feb 20 17:17:01 DebianStation CRON[2092]: pam_unix(cron:session): session opened for user root by (uid=0)
Feb 20 17:17:01 DebianStation CRON[2093]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Feb 20 17:17:01 DebianStation CRON[2092]: pam_unix(cron:session): session closed for user root
Feb 20 17:17:05 DebianStation sudo[2095]:     bla : TTY=pts/0 ; PWD=/home/bla ; USER=root ; COMMAND=/bin/journalctl -f
Feb 20 17:17:05 DebianStation sudo[2095]: pam_unix(sudo:session): session opened for user root by (uid=0)
Feb 20 17:17:59 DebianStation sudo[2097]:     bla : TTY=pts/1 ; PWD=/home/bla ; USER=root ; COMMAND=/usr/bin/wakeonlan b8:97:5a:77:13:78
Feb 20 17:17:59 DebianStation sudo[2097]: pam_unix(sudo:session): session opened for user root by (uid=0)
Feb 20 17:17:59 DebianStation sudo[2097]: pam_unix(sudo:session): session closed for user root

/etc/network/interfaces

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).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback


BenutzerGa4gooPh

Re: WOL Debian Stretch

Beitrag von BenutzerGa4gooPh » 20.02.2018 17:28:11

Hattest du das eigentlich schon getan???

Code: Alles auswählen

ethtool -s enp2s0 wol g
Ausgabe posten!

Im Netzwerkmanager Haken "Alle Benutzer dürfen Netzwerk verwenden".

nmcli mit zuerst geschriebener Syntax - als Benutzer:

Code: Alles auswählen

nmcli con show
nmcli con modify "Wired connection 1" 802-3-ethernet.wake-on-lan magic
nmcli con show "Wired connection 1" | grep wake
Posten!

Edit: Das Journal ist nicht vollständig und zu lang zum Posten im Beitrag. Selber schauen, nur relevante Zeilen posten. Bis jetzt nutzt es gar nichts.
Edit2: /etc/network/interfaces passt so.
Zuletzt geändert von BenutzerGa4gooPh am 20.02.2018 18:21:49, insgesamt 10-mal geändert.

jewo
Beiträge: 4
Registriert: 20.02.2018 12:38:54

Re: WOL Debian Stretch

Beitrag von jewo » 20.02.2018 17:37:04

Mach ich morgen früh und geb Bescheid...hab gleich noch'n Termin.

Antworten