Próxima revisión | Revisión previa |
es:howtos:network_services:wol [2019/02/11 12:27 (UTC)] – creado slackwarespanol | es:howtos:network_services:wol [2019/02/14 20:47 (UTC)] (actual) – [Sources] slackwarespanol |
---|
====== Wake-on-LAN ====== | ====== Wake-on-LAN ====== |
| |
Wake-on-LAN (or WOL) is a standard by which a machine can be powered on remotely via a network connection. This is done by sending a so-called //magic packet// to the network card of the remote machine. When properly configured, the remote machine will then boot. | Wake-on-LAN (o WOL) es un estándar por el cual una máquina se puede encender de forma remota a través de una conexión de red. Esto se hace enviando un llamado // magic packet // a la tarjeta de red de la máquina remota. Cuando se configura correctamente, la máquina remota arrancará. |
| |
<note> Most recent desktop computers support this, but it will likely be switched off by default. On very old machines, you may need to run a special cable from the network card to the motherboard.</note> | <note> La mayoría de las computadoras de escritorio recientes admiten esto, pero es probable que esté desactivada de forma predeterminada. En máquinas muy antiguas, es posible que deba instalar un cable especial desde la tarjeta de red a la placa base.</note> |
| |
===== Configure the BIOS ===== | ===== Configurar la BIOS ===== |
The Wake-on-LAN option must be enabled in the BIOS. Unfortunately these settings are not standardized. Check the motherboard documentation. Browse the BIOS menu. The option may not be called Wake-on-LAN, but something like 'Power On By PCI Device'. This varies greatly from board to board and some experimentation may be needed. | La opción Wake-on-LAN debe estar habilitada en el BIOS. Lamentablemente estas configuraciones no están estandarizadas. Compruebe la documentación de la placa base. Navega por el menú del BIOS. Es posible que la opción no se llame Wake-on-LAN, sino algo como 'Encender por dispositivo PCI'. Esto varía mucho de una tabla a otra y puede ser necesaria alguna experimentación. |
| ===== Configurar la tarjeta de red ===== |
===== Configure the network card ===== | Suponiendo que el primer puerto de red esté conectado, use '' ethtool '' para verificar la configuración de la tarjeta: |
Assuming the first network port is connected, use ''ethtool'' to check the card settings: | |
<code> | <code> |
# ethtool eth0 | grep -i wake-on | # ethtool eth0 | grep -i wake-on |
Wake-on: d | Wake-on: d |
</code> | </code> |
The //supports// line shows all options that are supported on the card. The option to look for is **g**, which means wake on magic packet. If the g option is not present, you are out of luck. | La línea // supports // muestra todas las opciones que se admiten en la tarjeta. La opción para buscar es ** g **, lo que significa despertar en un paquete mágico. Si la opción g no está presente, estás fuera de suerte. |
| |
The //Wake-on// line shows the current options in use. If this shows **d**, it means wake-on is currently disabled. | La línea // Wake-on // muestra las opciones actuales en uso. Si esto muestra ** d **, significa que la activación está actualmente deshabilitada. |
| |
To enable wake-on, use | Para habilitar el encendido, use |
<code> | <code> |
# ethtool -s eth0 wol g | # ethtool -s eth0 wol g |
</code> | </code> |
| |
This will most likely not survive a reboot, so to switch this option on again at the next boot, add the command to ''/etc/rc.d/rc.local'': | Es muy probable que esto no sobreviva al reinicio, por lo que para volver a activar esta opción en el siguiente arranque, agregue el comando a '' /etc/rc.d/rc.local '': |
<file - rc.local> | <file - rc.local> |
echo "Setting Wake-on-LAN to Enabled" | echo "Setting Wake-on-LAN to Enabled" |
</file> | </file> |
| |
Finally, we need to note the MAC address of the network card we just prepared: | Finalmente, debemos anotar la dirección MAC de la tarjeta de red que acabamos de preparar: |
<code> | <code> |
# ip addr show eth0 | grep -i ether | # ip addr show eth0 | grep -i ether |
</code> | </code> |
| |
===== Waking up the machine ===== | ===== Despertando la máquina ===== |
Now we need a special command on a different machine to send a magic packet. The ''wol'' command is available from [[http://slackbuilds.org|slackbuilds.org]]. This can be called by a regular user. At a minimum it needs the MAC address of the remote machine; for example: | Ahora necesitamos un comando especial en una máquina diferente para enviar un magic packet. El comando '' wol '' está disponible desde [[http: //slackbuilds.org | slackbuilds.org]]. Esto puede ser llamado por un usuario regular. Como mínimo necesita la dirección MAC de la máquina remota; por ejemplo: |
<code> | <code> |
$ wol 20:cf:30:1f:e3:a4 | $ wol 20:cf:30:1f:e3:a4 |
</code> | </code> |
| |
On a multihomed host, like a router, use the //host// option to specify the hostname or ip address of the remote host. This will broadcast the magic packet on the correct subnet: | En un host multitarjeta, como un enrutador, use la opción // host // para especificar el nombre de host o la dirección IP del host remoto. Esto transmitirá el magic packet en la subred correcta: |
<code> | <code> |
$ wol -i hostname 20:cf:30:1f:e3:a4 | $ wol -i hostname 20:cf:30:1f:e3:a4 |
| |
| |
====== Sources ====== | ====== Fuentes ====== |
<!-- If you are copying information from another source, then specify that source --> | <!-- If you are copying information from another source, then specify that source --> |
<!-- * Original source: [[http://some.website.org/some/page.html]] --> | <!-- * Original source: [[http://some.website.org/some/page.html]] --> |
<!-- Authors are allowed to give credit to themselves! --> | <!-- Authors are allowed to give credit to themselves! --> |
* Originally written by [[wiki:user:fdonkers | Frank Donkers]] | * Escrito originalmente por [[wiki:user:fdonkers | Frank Donkers]] |
| * Traducido por: [[wiki:user: slackwarespanol | Victor]] 2019/02/14 20:45 (UTC) |
<!-- * Contributions by [[wiki:user:yyy | User Y]] --> | <!-- * Contributions by [[wiki:user:yyy | User Y]] --> |
| |