I have two systems. One is my HTPC and the other is my notebook (both running slackware as usual). Both system are connected via my home router. My HTPC is connected directly via lan cable to my home router and my notebook is connected to my home router via wireless lan. In my case I want to wake up my HTPC from my notebook. To check if WOL is supported use the tool ethtool:
- Proxmox Enable Wake On Lan
- Wake On Lan Debian
- Supports Wake On Lan Pumbg
- Supports Wake On Pumbg
- Proxmox 6 Wake On Lan
notebook# ethtool eth0
...
Supports Wake-on: pumbg
Wake-on: g
...
htpc# ethtool eth0
...
Supports Wake-on: g
Wake-on: g
...- Supports Wake-on: pumbg. Current message level: 0x00000007 (7) drv probe link. Link detected: yes. Lspci -v grep Ethernet -A 1. 00:1f.6 Ethernet.
- Supports Wake-on: pumbg Wake-on: g. Which looks right to me. Earthw0rmjim: 10:37 AM: Seems WOL is enabled by default. In this case you don't have to touch init.d. All you have to do is make sure WOL is enabled in the BIOS, then you can use it.
- The broadcom part identify link but the i210 does not, see ethtool response: Supported ports: FIBRE Supported link modes: 1000baseKX/Full Supported pause frame use: Symmetric Supports auto-negotiation: Yes Supported FEC modes: Not reported Advertised link modes: 1000bas.
Each letter stands for a specific mode but in most cases the g mode (Magic Packet) should be ok. In my case my HTPC only supports g while my notebook supports the modes p, u, m, b and g. I only use the g mode. If youe need to change the WOL mode then use ethtool again:
Then, you’ll need an Ethernet network adapter that supports wakeonlan; wireless adapters won’t work. You’ll need to verify that your Ethernet card supports wakeonlan: # ethtool eth0 grep -i wake-on Supports Wake-on: pumbg Wake-on: g The Supports Wake-on line tells you what features are supported: d — all wake ups disabled.
# ethtool -s eth0 wol pThe above command will set the WOL mode to p. If you recheck it then the mode should be set to p (if it is supported):
# ethtool eth0
...
Supports Wake-on: pumbg
Wake-on: p
...The next thing you need to know is the mac address of your system you want to wake up. You can get mac address easily with ifconfig:
# ifconfig eth0
...
ether 00:11:22:33:44:55 txqueuelen 1000 (Ethernet)
...The string 00:11:22:33:44:55 represents your mac address.
Before you can wake up your system you need a WOL capable tool. One is wol which I like to use. Depending on your distribution you can download and install it directly. With Slackware the source has to be compiled first. Before you can compile anything you need the source:
# cd /usr/src
# wget -c 'http://downloads.sourceforge.net/project/wake-on-lan/wol/0.7.1/wol-0.7.1.tar.gz'Then extract the source package and change into the new created directory:
Proxmox Enable Wake On Lan
# tar xf wol-0.7.1.tar.gz
# cd wol-0.7.1Run the configure script (no changes are needed for 32/64bit system eg. libdir):
# ./configure --prefix=/usr
...
wol 0.7.1 configuration:
prefix: /usr
exec_prefix: ${prefix}
bindir: ${exec_prefix}/bin
libdir: ${exec_prefix}/lib
datadir: ${prefix}/share
mandir: ${prefix}/man
infodir: ${prefix}/info
ether_hostton support: yes
generate wol manpage: yes
EXTRA_LIBS:
ANSI emulation: noRun make to compile the source and make install to install the compiled binaries:
Wake On Lan Debian
# make && make installThen check that the wol tool is available:
# which wol
/usr/bin/wolExecuting wol is a very simple task. Just type wol followed by the mac address to wake up the desired systems (of course make sure that the system that you want to wake up is turned off):
Supports Wake On Lan Pumbg
Supports Wake On Pumbg
# wol 00:11:22:33:44:55
Waking up 00:11:22:33:44:55...Proxmox 6 Wake On Lan
This works when I wake up my HTPC from my notebook over wireless lan. And there is no difference if my HTPC is turned off or in suspend to ram/disk mode.