Wake On LAN

From ITCwiki
Revision as of 21:56, 13 December 2010 by Lueyang (talk | contribs) (→‎Testing)
Jump to navigation Jump to search

Introduction to WOL

  • Wake on LAN (WOL), sometime called Remote Wake Up, is an Ethernet computer networking standard that allows you to turn-on a power-off computer or wake-up a sleeping or hibernating computer from another location over a network connection. WOL works by sending a special message or signal over a local area network (LAN) or a wide area network (WAN), such as the Internet, to trigger power-up of a computer on a private LAN.

Purpose of Using WOL

Some of the purposes of using WOL are:

  1. saves time.
  2. Saves electrical energy.
  3. Saves money on electricity bills.
  4. A PC is more secure from hackers when it is off.
  5. Allows users to turn on and shutdown PCs remotely, etc.

Bellow are some example of using WOL.

  • You want to be able to access your home computer anywhere at anytime you want, but you don't want to through money away for your computer that has to be turned on all the time. You want to turn it on when you want to use it and shut it down when you are done.
  • You may want to access your home PC from work or your work PC from home, you might want to turn it on and get access to your files remotely, and then shut it down when you're done.
  • You want to access your files on your computer at home while you are traveling.
  • A technician may want to perform schedule and maintenance tasks without physically visit each computer on the network.

Implementing WOL can help you to achieve some of the above goals.

Hardware Requirements

A PC which supports WOL is required to enable WOL technology. Hardware requirements for WOL includes:

  1. An ATX power supply that meets ATX 2.01 specifications.
  2. An ATX motherboard with an onboard 3-pin WOL connector, and a network card that can support WOL with its cable to the motherboard properly installed. Most motherboards today has a built in NIC and support Wake on LAN functionality.
  • NOTE: Most PCs today have the above specifications built-in. You may check if your have a PC that supported WOL by checking in the Power Management option in BIOS.

My Example Lab

In this lab, I will walk you through the steps of enabling WOL, installing utility software, and testing it on a local area network (LAN). I used a PC and a laptop which both connected to a switch. The switch connected to a router that has connection to the internet. The PC I used in this lab is a custom built PC, and it has Windows XP Operating System installed. The installed motherboard is ASUS Rampage II Formula witch has quad ports NIC built-in, and the power supply is BFGR650PSU manufactured by BFG Tech.

The performed this lab as follow:

  1. Enable WOL on the PC.
  2. Install a WOL utility on the laptop.
  3. Use the utility to trigger power on of the PC.
  4. Test to see if the PC has power on or not using ping command.
  5. Connect to the PC using Remote Desktop Connection software.

Enabling WOL

In order for WOL to work, WOL feature must be enable in BIOS and Operating System. The process of enabling WOL may be different for each motherboard, so you may need to do some research on your motherboard.

  • On the ASUS Rampage II Formula, there are two options that must be enable in BIOS and also two option in Windows XP. WOL feature is enabled on my PC by following the steps bellow.
  1. Enable "LAN Boot ROM". Power on the PC and press Delete key to enter the BIOS setting, and then select "Advanced>LAN Boot ROM>Enabled".
  2. Enable "Power On By PCIE Devices". Select "Power>APM Configuration>Power On By PCIE Devices>Enabled".
  3. Go to "Exit and save changes" to save the setting. Then it will boot into Windows Operating System normally.
  4. On Windows XP, go to "Start>Control Panel>Network Connection". Right clicking on "Local Area Connection>Properties". Click on "Configure" button, and click on "Advanced" tab. Scroll down until you see "Wake From Shutdown" and "Wake Up Capabilities".
  5. Select "Wake From Shutdown" and change the value from Off to "On".
  6. Select "Wake Up Capabilities" and change the value to "Magic Packet".
  7. Click "OK" to save the changes.

Now the PC is ready for WOL, but you need to make notes of the Mac and IP address of the PC. I used ipconfig /all command to verified made notes of the MAC address and IP address of my PC, and then shut it down.

Downloading WOL Utility

There are many tools that you can use to trigger power on of a PC with WOL feature enabled. I used "MC-WOL.EXE" utility. This utility is a DOS command line utility that sends a "Magic Packet" to trigger power on of remote computer. MC-WOL.EXE can be download at http://www.matcode.com/wol.htm.

I have Windows 7 Operating System installed on my laptop. I downloaded MC-WOL.EXE and saved into C:\Users\LUE directory.

Testing

Now I tested WOL to watch my PC turn on using the following command. The XX:XX... is the mac address of the PC witch has WOL enabled.

mac-wol xx:xx:xx:xx:xx:xx

If the PC with WOL enabled is not physically visible, you can use the ping command follow by -t string to test and see if the target PC is powered on or not. After a few minutes, the ping should be successful if you have setup everything correctly. And if the target PC has Remote Desktop Connection enabled, you can remotely connect to it.