Hello,
Yes, sending WOL packets on RUT955 is possible, to configure it please follow this instruction:
Install etherwake on your RUT device (doesn’t work with RUT850). To install etherwake login into router via SSH and type:
opkg update
opkg install luci-app-wol
Edit etherwake config file
vi /etc/config/etherwake
Edited file should look similarly to this:
config 'etherwake' 'setup'
option 'pathes' '/usr/bin/etherwake /usr/bin/ether-wake'
option 'sudo' 'off'
option 'interface' 'eth0'
option 'broadcast' 'on'
config 'target'
option 'name' 'TeltonikaPC'
option 'mac' '00:22:33:44:55:66'
option 'password' 'AABBCCDDEEFF'
option 'wakeonboot' 'off'
To add more than one target use uci commands:
# uci add etherwake target
# uci set etherwake.@target[-1].name=example
# uci set etherwake.@target[-1].mac=11:22:33:44:55:66
# uci set etherwake.@target[-1].password=AABBCCDDEEFF
# uci set etherwake.@target[-1].wakeonboot=off
Target name can be anything, but is case sensitive.
Target MAC is mandatory
option ‘password’ can be left blank
After adding all your targets, configuration on router side is finished, now it is needed to configure target PC’s
Enable WoL in the BIOS
To enable WoL in the BIOS, enter the BIOS setup and look for something called "Wake up on PCI event", "Wake up on LAN" or similar. Change it so that it is enabled. ErP must be disabled. Save your settings and reboot.
For Ubuntu
To enable WoL in the NIC download ethtools package. For ubuntu use commands:
sudo apt-get install ethtool
Check if WoL is enabled in the NIC
sudo ethtool <NIC name eg.eth0 or enp1s0>
and look for
Wake-on: <letters>
If <letters> contains g and not d, then Magic Packet™ is enabled. However, if <letters> does contain d, WoL needs to be enabled by running the following command:
sudo ethtool -s <NIC> wol g
On most systems, issuing this command is required after each boot. To make this command run everytime PC boots we need to a script.
First create a text file named eg. wakeonlan at /etc/cron.d
sudo pico /etc/cron.d/wakeonlan
Paste this script into the file:
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
@reboot root /sbin/ethtool -s <your NIC name> wol g
To save and exit press ctrl+o, then enter and then ctrl+x
To test the setup, turn off device which you want to wake. Login into router via SSH and use command:
/etc/init.d/etherwake start <Target name> eg.
/etc/init.d/etherwake start TeltonikaPC
or
/usr/bin/etherwork -D -i "eth0" "device mac" eg.
/usr/bin/etherwake -D -i "eth0" "11:22:33:44:55:66"
If everything was configured properly, after using either of these commands target PC should start booting.