Linux.WOL: Unterschied zwischen den Versionen

Aus OrgaMon Wiki
Zur Navigation springen Zur Suche springen
Zeile 57: Zeile 57:


post-install 8139too ethtool -s ethX wol umbg
post-install 8139too ethtool -s ethX wol umbg
up command
post-up command
Run command after bringing the interface up. If this command fails then ifup aborts, refraining from marking the interface as configured (even though it has really been configured), prints an error message, and exits with status 0. This behavior may change in the future.
down command
pre-down command
Run command before taking the interface down. If this command fails then ifdown aborts, marks the interface as deconfigured (even though it has not really been deconfigured), and exits with status 0. This behavior may change in the future.

Version vom 30. August 2005, 09:43 Uhr

Einen Computer aus dem "halt" wieder über die Netzwerkkarte aufzuwecken gelingt nicht immer auf Anhieb. Hier einiges Tipps?

Voraussetzungen:

  • WOL fähige Netzwerkkarte die über PCI 2.2 an das Board gekoppelt ist (alternativ über WOL jumper mit Kabel)
  • Integrierte Netzwerkkarte.
  • BIOS: Powermanagement muss aktiv sein.
  • BIOS: Aufwecken mit WOL MAC PME muss aktiviert sein.
  • Im halt müssen im an das Board angeschlossenem Hub die Link Lämpchen leuchten. Ist das nicht so, hat die Karte keinen Strom.

Informationen über eine Netzwerkkarte ausgeben.

ethtool eth0     // Info ausgeben
ethtool -i eth0  // Info über das geladene Modul ausgeben
man ethtool      // Erklärung für die WOL Buchstaben ausgeben

In ein Start-Script sollte folgendes eingetragen werden.

 ethtool -s eth0 wol g

Den Rechner sollte man mit folgendem Befehl ausschalten:

 halt


Ein Remote (Linux) Rechner kann mit folgendem Befehl den Ziel Rechner einschalten:

ether-wake xx:xx:xx:xx:xx:xx    // MAC Adresse der Netzwerkkarte

SiS900 auf meinem ASUS Board

Dummerweise geht das Wake on Lan mit Suse 10.0 Beta 3 nicht. Der sis900.c Maintainer lebt auf dieser WebSite http://www.brownhat.org/sis900.html Ich versuche einen entsprechenden Patch einzuspielen:

cd /usr/src/linux/drivers/net
wget http://www.brownhat.org/download/kpatches/sis900-wol-ethtool.diff
// Mist: ich musste den Patch per hand "einspielen": Also abtippen! Eigentlich sollte das 
// folgendermassen automatisch gehen:
patch < sis900-wol-ethtool.diff

// wieder im ./linux
make cloneconfig
make prepare
make modules modules_install

später wollen wir auch sehen, dass unsere Compilierung auch wirklich eine durchschlagende Wirkung hatte:

ethtool -i eth0

Es muss unser gepatchter Versions String angezeigt werden! ES GEHT !!!!!!! COOOOOOOOOOLLLLLLLLLLL !

Ein Problem bleibt:

ethtool -s eth0 wol g

muss immer zu der Laufzeit des Rechners gemacht werden, damit nach einem halt der Rechner schön startet. ethtool to configure it's WOL settings you have to add following line to your /etc/modules.conf (Debian: /etc/modutils/local):

post-install 8139too ethtool -s ethX wol umbg

up command post-up command Run command after bringing the interface up. If this command fails then ifup aborts, refraining from marking the interface as configured (even though it has really been configured), prints an error message, and exits with status 0. This behavior may change in the future. down command pre-down command Run command before taking the interface down. If this command fails then ifdown aborts, marks the interface as deconfigured (even though it has not really been deconfigured), and exits with status 0. This behavior may change in the future.