
For [connection*] and [device*] sections, any suffix is allowed in
the group.
However (at least for configuration snippets we ship upstream), we
want to give a suffix that matches the name of the configuration
snippet.
It seems more common to use [connection-*] instead of [connection.].
See also "examples/nm-conf.d/*.conf" and "15-carrier-timeout.conf" file
which contains a [device-15-carrier-timeout] section.
Note that this file (in Fedora) is not configuration (installed in
/usr/lib). It is thus not problematic to modify.
Fixes: ea8dbd7a6d
('contrib/rpm: add "22-wifi-mac-addr.conf" to F40+')
32 lines
1.2 KiB
Plaintext
32 lines
1.2 KiB
Plaintext
# This sets defaults for Wi-Fi profiles to set a generated, stable MAC address.
|
|
#
|
|
# Do not modify this file. You can hide/overwrite this file by placing a file
|
|
# to "/etc/NetworkManager/conf.d/22-wifi-mac-addr.conf". You can also add
|
|
# configuration snippets with higher priority that override this setting (see
|
|
# `man 5 NetworkManager.conf`). Most importantly, this snippet only sets
|
|
# default values for the profile. You can explicitly set the value for each
|
|
# profile, so that this default value is not used.
|
|
#
|
|
# For example, on a particular profile/network set
|
|
#
|
|
# $ nmcli connection modify "$PROFILE" wifi.cloned-mac-address permanent
|
|
#
|
|
# to use the hardware MAC address. This prevents the default from this file
|
|
# to take effect.
|
|
#
|
|
# Or
|
|
#
|
|
# $ nmcli connection modify "$PROFILE" wifi.cloned-mac-address stable connection.stable-id '${NETWORK_SSID}/${BOOT}'
|
|
#
|
|
# to get a generated MAC address that changes on each boot. Note how setting
|
|
# "connection.stable-id" also affects other aspects of the profile.
|
|
#
|
|
# See `man 5 nm-settings` for "wifi.cloned-mac-address" and "connection.stable-id".
|
|
|
|
[connection-22-wifi-mac-addr]
|
|
match-device=type:wifi
|
|
wifi.cloned-mac-address=stable-ssid
|
|
|
|
[.config]
|
|
enable=nm-version-min:1.45
|