Wake On LAN: Difference between revisions

From ITCwiki
Jump to navigation Jump to search
No edit summary
 
(One intermediate revision by the same user not shown)
Line 37: Line 37:
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.  
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.
*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.
#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".
#Enable '''LAN Boot ROM'''. Power on the PC and press Delete key to enter the BIOS setup. Select '''Advanced>LAN Boot ROM>Enabled'''.
#Enable "Power On By PCIE Devices". Select "Power>APM Configuration>Power On By PCIE Devices>Enabled".  
#Enable '''Power On By PCIE Devices'''. Select '''Power>APM Configuration>Power On By PCIE Devices>Enabled'''.  
#Go to "Exit and save changes" to save the setting. Then it will boot into Windows Operating System normally.
#Go to '''Exit and save changes''' to save the setting. Then it will boot into Windows Operating System normally.
#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".  
{|
#Select "Wake From Shutdown" and change the value from Off to "On".
| [[Image:wol01.jpg|thumb|upright|ENABLE WOL IN BIOS 1|200px]]
#Select "Wake Up Capabilities" and change the value to "Magic Packet".
| [[Image:wol02.jpg|thumb|upright|ENABLE WOL IN BIOS 2|200px]]
#Click "OK" to save the changes.
| [[Image:wol03.jpg|thumb|upright|ENABLE WOL IN BIOS 3|200px]]
 
| [[Image:wol04.jpg|thumb|upright|ENABLE WOL IN BIOS 4|260px]]
|}
*WOL must be enabled on the Operation System you are running. Here I will show you how to enable WOL in 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'''.  
#Select "Wake From Shutdown" and change the value from Off to '''On'''.
#Select '''Wake Up Capabilities''' and change the value to '''Magic Packet'''.
#Click '''OK''' button to save the changes.
{|
| [[Image:wol05.jpg|thumb|upright|ENABLE WOL IN WINDOWS XP 1|200px]]
| [[Image:wol06.jpg|thumb|upright|ENABLE WOL IN WINDOWS XP 2|450px]]
| [[Image:wol07.jpg|thumb|upright|ENABLE WOL IN WINDOWS XP 3|220px]]
|}
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.  
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.  


Line 53: Line 64:


===Testing===
===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.
Now I tested WOL to watch my PC turn on using the following command. The 00:22:15:46:B0:6B is the mac address of the PC witch has WOL enabled.
  mac-wol xx:xx:xx:xx:xx:xx
  mac-wol 00:22:15:46:B0:6B
 
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 while, the ping should be successful as the screen shot bellow. If you have setup everything correctly and the target PC has Remote Desktop Connection enabled, you can remotely connect to it using Remote Desktop Connection.


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.
[[File:wol08.jpg|650px]]

Latest revision as of 02:52, 15 December 2010

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 setup. 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.
ENABLE WOL IN BIOS 1
ENABLE WOL IN BIOS 2
ENABLE WOL IN BIOS 3
ENABLE WOL IN BIOS 4
  • WOL must be enabled on the Operation System you are running. Here I will show you how to enable WOL in Windows XP.
  1. 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.
  2. Select "Wake From Shutdown" and change the value from Off to On.
  3. Select Wake Up Capabilities and change the value to Magic Packet.
  4. Click OK button to save the changes.
ENABLE WOL IN WINDOWS XP 1
ENABLE WOL IN WINDOWS XP 2
ENABLE WOL IN WINDOWS XP 3

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 00:22:15:46:B0:6B is the mac address of the PC witch has WOL enabled.

mac-wol 00:22:15:46:B0:6B

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 while, the ping should be successful as the screen shot bellow. If you have setup everything correctly and the target PC has Remote Desktop Connection enabled, you can remotely connect to it using Remote Desktop Connection.

Wol08.jpg