Non sei collegato (collegati)
  1.  
    Salve!
    sto cercando di configurare il wake on lan su un pc acer asm1641 con ubuntu installato (versione 8.04 lts).
    Ho installato xen dai repository di ubuntu (apt-get install ubuntu-xen-server) e ho quindi la versione 3.2.
    Su altre versioni di ubuntu (come la 9.10) l'installazione del wake on lan non ha avuto problemi.

    1.Con il comando:

    ethtool -s eth0 wol g

    ottengo il seguente output:
    Cannot get current wake-on-lan settings: Operation not supported
    not setting wol


    2.Con il comando:

    ethtool eth0

    ottengo il seguente output:

    Settings for eth0:
    Link detected: yes


    3.Con il comando:

    ethtool -s peth0 wol g

    Non ottengo output, quindi il comando dovrebbe essere andato a buon fine.


    Allora ho pensato di dover configurare l'interfaccia peth0 perchè venga abilitata al wake on lan, come si poteva intuire da questa pagina : http://mario.verbelen.org/node/13 .

    Invece quando il sistema "boota" non carica nessuna impostazione per l'interfaccia peth0, nonostante abbia impostato il file /etc/network/interfaces in questa maniera:

    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).

    # The loopback network interface
    auto lo
    iface lo inet loopback

    # The primary network interface
    auto eth0
    iface eth0 inet static
    address 192.168.1.100
    netmask 255.255.255.128
    network 192.168.1.0
    broadcast 192.168.1.127
    gateway 192.168.1.1
    # dns-* options are implemented by the resolvconf package, if installed
    dns-nameservers 192.168.1.1

    auto peth0
    iface peth0 inet static
    address 192.168.1.101
    netmask 255.255.255.128
    network 192.168.1.0
    broadcast 192.168.1.127
    gateway 192.168.1.1
    # dns-* options are implemented by the resolvconf package, if installed
    dns-nameservers 192.168.1.1


    Dopo un reboot infatti l'output di ifconfig è:

    eth0 Link encap:Ethernet HWaddr 00:21:85:35:d8:6c
    inet addr:192.168.1.100 Bcast:192.168.1.127 Mask:255.255.255.128
    inet6 addr: fe80::221:85ff:fe35:d86c/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:63 errors:0 dropped:0 overruns:0 frame:0
    TX packets:47 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:9645 (9.4 KB) TX bytes:6682 (6.5 KB)

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    peth0 Link encap:Ethernet HWaddr 00:21:85:35:d8:6c
    inet6 addr: fe80::221:85ff:fe35:d86c/64 Scope:Link
    UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
    RX packets:69 errors:0 dropped:0 overruns:0 frame:0
    TX packets:64 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:11255 (10.9 KB) TX bytes:8418 (8.2 KB)
    Interrupt:7 Base address:0x6000

    e invece dando un /etc/init.d/networking restart l'interfaccia peth0 restituisce acquisisce l'indirizzo ip:

    peth0 Link encap:Ethernet HWaddr 00:21:85:35:d8:6c
    inet addr:192.168.1.101 Bcast:192.168.1.127 Mask:255.255.255.128
    inet6 addr: fe80::221:85ff:fe35:d86c/64 Scope:Link
    UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
    RX packets:126 errors:0 dropped:0 overruns:0 frame:0
    TX packets:136 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:16021 (15.6 KB) TX bytes:18162 (17.7 KB)
    Interrupt:7 Base address:0x6000


    Qualcuno sa indirizzarmi nel capire quali problemi affliggono la mia scheda di rete?
    muchas gracias
    mig
  2.  
    Modo "caprone":

    ho inserito il comando /etc/init.d/networking restart nel file /etc/rc.local, che è fatto in questa maniera:

    #!/bin/sh -e
    # ............
    # By default this script does nothing.

    /etc/init.d/networking restart
    ethtool -s peth0 wol g

    exit 0


    Quindi in questa maniera viene forzato il caricamento dell'interfaccia peth0, che adesso ha addirittura lo stesso ip address dell'interfaccia eth0 (se qualcuna sa che può comportare qualche problema mi faccia un fischio :D), e, dato che non avevo problemi ad abilitare il wol con ethtool sull'interfaccia peth0, nello script rc.local ho inserito la linea "ethtool -s peth0 wol g".

    Tral'altro ho risolto un problema che affliggeva il mio wake on wan (:D o meglio wake on internet), che era dato dal fatto che il mio router non instradava per impostazione di sicurezza nessun pacchetto indirizzato al broadcast della rete.
    In sostanza era impossibile inserire una regola che dicesse di forwardare i pacchetti in ingresso con destinazione la porta 9 UDP, a un indirizzo di broadcast come per esempio il 192.168.1.255. Spucliando qua e là mi sono accorto che effettivamente bastava subnettare la rete, per esempio in una /25, e avere così un broadcast di questo tipo 192.168.1.127.
    Il router infatti non lo riconosce come indirizzo broadcast e ti permette di creare la regola di forwarding.
    Grazie a quest'ultimo trucchetto è possibile fare il wake on wan (e vai con il risparmio energetico ... .dato che anche per me , come per qualcun altro in questa community, xen è utile ai fini universitari).


    Un saluto alla comunità!
    mig
Aggiunti i tuoi commenti