Re: ethernet.wake-on-lan
- From: poma <pomidorabelisima gmail com>
- To: Thomas Haller <thaller redhat com>, Beniamino Galvani <bgalvani redhat com>
- Cc: Network Manager <networkmanager-list gnome org>
- Subject: Re: ethernet.wake-on-lan
- Date: Mon, 14 Sep 2015 01:08:06 +0200
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?
Yes
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:
[connection-wake-on-lan-default]
ethernet.wake-on-lan=0
in /etc/NetworkManager/NetworkManager.conf (or
/etc/NetworkManager/conf.d/01-my-wake-on-lan-config)
and
systemctl reload NetworkManager
or
systemctl restart NetworkManager
Thomas
# systemctl mask NetworkManager.service
# systemctl poweroff
Booted after G3 - mechanical off:
$ systemctl is-enabled NetworkManager.service
masked
$ systemctl is-active NetworkManager.service
inactive
# 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 ^#
[connection-wake-on-lan-default]
ethernet.wake-on-lan=0
# 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]