[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Démarrer un ordinateur via sa carte réseau.



RENAULT Laurent wrote:
> 
> Bonjour,
> 
> Je cherche quelques pointeurs pour démarrer un ordinateur via sa carte réseau.
> Deux cas se présentent:
>         - Carte Intel Pro 100+
>         - Carte 3com 905b

Pour la carte intel, je ne sais pas, pour la carte 3com, voilà la
méthode :
1) voir déjà le HOWTO Wake On Lan et les infos suivantes :
http://gsd.di.uminho.pt/jpo/software/wakeonlan/mini-howto/wol-mini-howto.html
http://scyld.com/expert/wake-on-lan.html

2) voilà la démarche que j'avais envoyé à l'auteur du Howto mais qu'il
n'a malheureusement pas repris :

So, here are some informations about 3com cards and wake on lan :

The primary official FTP sites about 3com drivers and utilities for
wake on lan is :
http://www.scyld.com/network/ by Donald Becker
FTP site : ftp://ftp.scyld.com/pub/network/
The tests I have made are only for 3com 905b cards. I don't know if
other
3com cards work well or not.
But, this card is the most nic used, so...

First, you need a recent 3c59x.c file for wake on lan.
The standard 3c59x.c file that is given with the standard linux kernel
is too old (even with 2.2.18).
It's based on an old driver from Donald Becker.
You must use the D. Becker driver for wake on lan.
Read the documentation here :
http://www.scyld.com/network/vortex.html
Do not forget pci-scan and kernel_compat or it will not compile...

After this, you need 2 utilities :
* pci-config.c ==> ftp://ftp.scyld.com/pub/diag/pci-config.c
* ether-wake.c ==> ftp://ftp.scyld.com/pub/diag/ether-wake.c


Now, to use wake on lan on 3com cards, you just have to launch
pci-config, you will get something like that :
# ./pci-config 
pci-config.c:v2.00 4/19/2000 Donald Becker (becker@scyld.com)
 http://www.scyld.com/diag/index.html
Device #1 at bus 0 device/function 0/0, 71908086.
Device #2 at bus 0 device/function 1/0, 71918086.
Device #3 at bus 0 device/function 7/0, 71108086.
Device #4 at bus 0 device/function 7/1, 71118086.
Device #5 at bus 0 device/function 7/2, 71128086.
Device #6 at bus 0 device/function 7/3, 71138086.
Device #7 at bus 0 device/function 10/0, 905510b7.
Device #8 at bus 0 device/function 14/0, 13711274.
Device #9 at bus 0 device/function 18/0, 00109005.
# 

You can see that device #7 is starting with 905, so this one contains
the 3com 905 card.

Then, for activate the wake on lan on the 3com card, do this :
# ifconfig eth0 down (eth0 is your 3com card, you must put it down, it
won't work if not)
then 
# ./pci-config -W -#7 (#7 because of what we've seen just before)

After this, you can do a shutdown :
# shutdown -h now

>From another machine, use the ether-wake that you have compiled before
and do :
# ./ether-wake 00:50:DA:5C:55:23 (where 00:50:DA:5C:55:23 is the Mac
address of the 3com card in the stopped computer)



Voilà !
Avec ça, ça devrait fonctionner :)

-------------
Fabien SALVI      Centre de Ressources Informatiques
                  Archamps, France -- http://www.cri74.org
                  PingOO GNU/linux distribution : http://www.pingoo.org



Reply to: