I'm trying to setup wake on LAN on my desktop which has Ubuntu 16.04 running.
I've tried a lot, following different manuals and troubleshooting, but with no luck.
When the computer is off or on suspend, one orange light is on the network card, occasionally slightly flickering. I need to resume or turn on computer via LAN if it is suspended or turned off respectively.
I believe I have wake on LAN enabled in the BIOS.
Some outputs that I think might be relevant,
$ sudo ethtool enp2s0 | grep Wake
Supports Wake-on: pumbg
Wake-on: g
$ sudo ethtool -i enp2s0 | grep bus
bus-info: 0000:02:00.0
$ cat /proc/acpi/wakeup | grep 0000:02:00.0
PXSX S4 *enabled pci:0000:02:00.0
$ lspci | grep Ethernet
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)
$ cat /etc/default/halt
# Default behaviour of shutdown -h / halt. Set to "halt" or "poweroff".
HALT=poweroff
NETDOWN=no
$ sudo tcpdump -i enp2s0 '(udp and port 7) or (udp and port 9)'
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on enp2s0, link-type EN10MB (Ethernet), capture size 262144 bytes
15:31:38.121365 IP <ip>.51603 > <broadcast_ip>.discard: UDP, length 102
I even tried the r8168 driver with no luck.
I'm sending WOL signal with the following command
$ wakeonlan -i <broadcast_ip> <mac_addr>
Any ideas?
tcpdump
output show that your network is allowing the packet to reach your system?tcpdump
shows packets that actually reached my system, that is network allowed it to reach my system. No?tcpdump
did, so I just wanted to confirm whether that was the intention of running that command. :)