Re: ethernet.wake-on-lan

On 13.09.2015 16:05, Thomas Haller wrote:
On Sun, 2015-09-13 at 15:48 +0200, poma wrote:
Hi Fi

If wake-on-lan is local setting - per connection,
is ethernet.wake-on-lan global setting?

man 5 nm-settings/NetworkManager.conf does not explain.

BTW how to disable NetworkManager's WOL management completely?


Is also explained in the manual. Search for wake-on-lan in:
  man nm-settings
  man NetworkManager.conf

First of all, leave the per-connection setting at the default.
If you configure the per-connection setting explicitly, the global
setting is ignored.

  $ nmcli connection modify NAME ethernet.wake-on-lan ""

  $ nmcli connection show NAME
  802-3-ethernet.wake-on-lan:             default

Then configure:


in /etc/NetworkManager/NetworkManager.conf (or

  systemctl reload NetworkManager
  systemctl restart NetworkManager


# systemctl mask NetworkManager.service 
# systemctl poweroff

Booted after G3 - mechanical off:

$ systemctl is-enabled NetworkManager.service 
$ systemctl is-active NetworkManager.service 

# ethtool enp3s0 | grep Wake-on
        Supports Wake-on: pumbg
        Wake-on: g

As shown, original device state - WOL (magic) is enabled.

$ grep wake /etc/NetworkManager/NetworkManager.conf | grep -v ^#

# systemctl unmask NetworkManager.service
# systemctl start NetworkManager.service

$ nmcli --fields 802-3-ethernet.wake-on-lan connection show enp3s0 
802-3-ethernet.wake-on-lan:             default

# ethtool enp3s0 | grep Wake-on
        Supports Wake-on: pumbg
        Wake-on: d

As shown, "ethernet.wake-on-lan=0" has no effect on disabling NetworkManager's WOL management.
I wonder if such a possibility exists, at all.

BTW the NetworkManager's WOL implementation - to disable WOL on devices per default,
is somehow contradictory.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]