Today we start a series of tutorials to be able to turn on another Linux PC on our network, being on the same LAN or through the internet, for example a server.
The basics#
WOL : Wake On LAN is the technology that will allow us to turn on a PC on the network remotely. WAN: Referred in this case to Wake on lan over the WWAN internet. MAC: It is the physical address of the network card, i.e. a unique identifier. Server: In this case it will be the PC that we want to turn on remotely. Client: In this case it will be the device that will send the command to the server to turn on. Steps
- Configure the server’s BIOS so that when we turn off the computer, the network card listens for a “Magic package” power on request.
- To do this, we will enter the BIOS by restarting the PC and pressing (DEL or F2 depending on models), as soon as we start.
- We’ll look for the area of the BIOS, where the power (Power) or power (BOOT) options are configured according to models.
- We will activate the options in which it says network, WOL, PME (Power Management Event), etc.
- We will save and go out with F10 normally .
- If you do not locate these option look for “Activate MARK BRAND_BIOS”, the BIOS mark can be located as the PC boots on the first screen that appears.
- We get the current IP of the PC we want to turn on and the MAC of its network interface
We open a terminal
We enter the command
//Windows ipconfig /all //Linux ifconfig //Linux puerta de enlace netstat -nr|head -3|tail -1 |cut -d" " -f10We take the following data from our network interface, in my case eth0, as we saw earlier VariableLinux WindowsIPOFSERVER Direc. inet: IPv4address MACOFSERVERaddressHW Physical addressINTERFACEOFSERVEReth0Ethernet Ethernet adapter:GATEWAYDefault gateway
- Configure router, even if we have configured with fixed IP, in this case when it is turned off, the router will assign the IP it deems appropriate, so from the MAC we will tell it that even when it is turned off, it will always assign the same IP, without taking into account the configuration of the system.
- This step with today’s routers can perhaps be skipped, as many of them always try to use the same MAC for the same IP, but it doesn’t hurt to make sure.
- Configure Static ARP Table for MAC Server .
- For example, on my router a Huawei HG622 from Jazztel
We access the router by telnet by putting the gateway of our network in putty.
Which we can consult by doing Windows button ->cmd->ipconfig/all -> and looking for “gateway” for our connection.
Enter username and password that will be admin and admin
Enter “sh” to enter the shell
We enter the following commands that we got in the previous step
//Primero para ver el formato en que debemos introducirlo arp //(sin comillas) arp "ipdelequiposervidor" "macdelequiposervidor" -s
- This part won’t be the same on all routers, so I recommend Googling “Assign same IP always name_router” or “fixed ARP table name_router”.
- For example, on my router a Huawei HG622 from Jazztel
Wise note: Before, not all computers had Wake on lan, and in those that did, it was necessary to connect a cable from the network card to the motherboard, which also had to support it.
Currently all PCS incorporate this functionality








