Discussione:
etherwake: SIOCGIFHWADDR on eth0 failed: No such device
(troppo vecchio per rispondere)
alex
2019-04-11 08:24:00 UTC
Permalink
$ sudo etherwake "uu:aa1:65:20:BB:77"
SIOCGIFHWADDR on eth0 failed: No such device

perchè?
Di3s3l 🇮🇹
2019-04-12 14:30:40 UTC
Permalink
aa1
O e' A1 o e' AA
AA1 lo vedo improbabile
--
Parte della disumanità del computer sta nel fatto che, una volta
programmato e messo in funzione, si comporta in maniera perfettamente
onesta.
alex
2019-04-12 17:00:18 UTC
Permalink
Post by Di3s3l 🇮🇹
aa1
O e' A1 o e' AA
AA1 lo vedo improbabile
Hai ragione, cmq non era questo il problema.

Ho dato alcuni comandi


ifconfig -a
sudo ethtool -s eth0 wol g # ERRORE
sudo ethtool -s enp0s31f6 wol g
sudo ethtool enp0s31f6
sudo etherwake <mac-address> # solito errore
wakeonlan <mac-address> # ok

Alla fine dopo aver visionato i vari output e configurato la scheda, ho
deciso di usare wakeonlan, che funziona anche senza sudo.
Non dovrebbe essere equivalente a etherwake?
Di3s3l 🇮🇹
2019-04-12 17:06:15 UTC
Permalink
Post by alex
Hai ragione, cmq non era questo il problema.
Ho dato alcuni comandi
ifconfig -a
sudo ethtool -s eth0 wol g # ERRORE
sudo ethtool -s enp0s31f6 wol g
sudo ethtool enp0s31f6
sudo etherwake <mac-address> # solito errore
wakeonlan <mac-address> # ok
Alla fine dopo aver visionato i vari output e configurato la scheda, ho
deciso di usare wakeonlan, che funziona anche senza sudo.
Non dovrebbe essere equivalente a etherwake?
Non conosco il tool ma da una rapida ricerca con goole
https://www.mkssoftware.com/docs/man1/etherwake.1.asp

EXAMPLES

Wake up a machine at ip address 192.168.1.5 Wake-On-LAN magic packets
require a broadcast address and a mac address. So you must know the mac
address before the machne goes to sleep. So while it is awake you can ping
the machine and save off the mac address from the arp cache. You will also
need to know that ip address' broadcast address or calculate it from the
network mask. In this case we use a classic class C address with netmask
255.255.255.0 and so the broadcast address is 192.168.1.255.

$ ping 192.168.1.5
...
$ arp -a 192.168.1.5
Internet Address Physical Address Type
192.168.1.5 00-21-70-c2-c1-88 dynamic
...
$ etherwake -b 192.168.1.255 00:21:70:c2:c1:88
Magic packet sent to 00:21:70:c2:c1:88
$

Quindi il comando "sudo etherwake <mac-address>" sembra incompleto
--
Parte della disumanità del computer sta nel fatto che, una volta
programmato e messo in funzione, si comporta in maniera perfettamente
onesta.
Loading...