Ubuntu – Wake on lan not working 1in new 19.04

lubuntunetworking

WOL doesn't work on a fresh installation of Lubuntu 19.04

/etc/netplan/01-network-manager-all.yaml contains:

# Let NetworkManager manage all devices on this system                                                         
network:                                                                                                       
  version: 2                                                                                                   
  renderer: NetworkManager

/etc/default/halt contains:

NETDOWN=no

/etc/default/tlp contains:
WOL_DISABLE=N

ethtool enp3s0 produces:

Supports Wake-on: pumbg
    Wake-on: g

But after I shut the system down, WOL doesn't work.

Problem can't be in hardware or BIOS, because there's a Lubuntu 18.04 system on the same hard drive, and with this WOL works fine.

Can anyone see what I've missed?

Best Answer

This works:

network:
  version: 2
  renderer: {renderer}
  ethernets:
    {networkname}:
      match:
        macaddress: {mac address}
     wakeonlan: true

and it is a lot more lines than you have in your yaml file. Looks like macadress is mandatory/adviced for WOL.

See also the Common properties for physical device types.