Several methods of host remote wake-up (Wol,wake on Lan) in Linux

Source: Internet
Author: User
Now many new PCs (especially the motherboard integrated network card machine) support the remote wake-up function (Wol,wake on Lan), through remote wake-up, you can facilitate the administrator to achieve automatic computer opening. Of course the host that is remotely awakened requires the following conditions:
    • The motherboard (and NIC) supports WOL features, and some machines also need to be set up in the BIOS to enable the function;
    • When the host is in the shutdown state, it needs to be plugged in, that is, the computer's motherboard and Nic are on the power state (at this time the entire computer's power consumption is very small), can monitor the network to their own "wake-up packets";
    • The administrator needs to write down the MAC address (physical address) of the Awakened host network card so that the host can be awakened by the corresponding method;
You can wake up the computer in a different way (software) after you have determined that you have the necessary conditions, which method should be selected according to your own needs:
One, in Windows can realize the remote wake-up function of many software, here only introduced the author commonly used two:

1, the wolcmd of the command line mode:

The format of the Wolcmd command is: Wolcmd [MAC address] [IP address] [subnet mask] [port number]

You can wake a specified computer by using a MAC address directly in the LAN as a command parameter, for example: Wolcmd 009027a324fe

Under the GUI, you can use any value that is not 1-65535 before the local area network (with 0 o'clock error)

All of the above 2 software is free to use, I prefer to use the command line wolcmd, you can write a batch file (. bat) or create a Windows shortcut to execute the wolcmd command wake a MAC address host. if it is a remote wake under the WAN, you need to do port mapping on the router.

Second, in Linux can use the WakeOnLAN command to wake the host

1, WakeOnLAN software package in the Ubuntu and Debian and other Linux systems are not installed by default, before using the APT command to install the WakeOnLAN package:

$ sudo apt-get install WakeOnLAN
2, in the Red Hat series of Linux version of the need to download and install the WakeOnLAN rpm package, download the address is:
http://dag.wieers.com/rpm/packages/wol/

Third, in addition to the use of Software (command) to achieve remote wake-up function, some manufacturers of router products in the Web management interface also provides remote wake-up function, such as Iptime (Tang technology) series of router products in the management interface support remote wake-up function, the cheapest model is zc-ip0422, But in Beijing the brand's products are not easy to find.

The above several methods, basically can satisfy the system administrator to the host remote wake-up application demand, the reasonable use WOL function may provide the host system the management efficiency greatly.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.