commit
5feee1aaf9
@ -0,0 +1 @@
|
|||||||
|
6423adef5f4bb2c0cc20c2173e03a7ac8b8565ca SOURCES/NetworkManager-1.48.10.tar.xz
|
@ -0,0 +1 @@
|
|||||||
|
SOURCES/NetworkManager-1.48.10.tar.xz
|
@ -0,0 +1,14 @@
|
|||||||
|
# This configuration file changes NetworkManager's behavior to
|
||||||
|
# what's expected on "traditional UNIX server" type deployments.
|
||||||
|
#
|
||||||
|
# See "man NetworkManager.conf" for more information about these
|
||||||
|
# and other keys.
|
||||||
|
|
||||||
|
[main]
|
||||||
|
# Do not do automatic (DHCP/SLAAC) configuration on ethernet devices
|
||||||
|
# with no other matching connections.
|
||||||
|
no-auto-default=*
|
||||||
|
|
||||||
|
# Ignore the carrier (cable plugged in) state when attempting to
|
||||||
|
# activate static-IP connections.
|
||||||
|
ignore-carrier=*
|
@ -0,0 +1,10 @@
|
|||||||
|
# Enable connectivity checking for NetworkManager.
|
||||||
|
# See `man NetworkManager.conf`.
|
||||||
|
#
|
||||||
|
# Note that connectivity checking works badly with rp_filter set to
|
||||||
|
# strict. Check "/proc/sys/net/ipv4/conf/*/rp_filter".
|
||||||
|
[connectivity]
|
||||||
|
enabled=true
|
||||||
|
uri=http://fedoraproject.org/static/hotspot.txt
|
||||||
|
response=OK
|
||||||
|
interval=300
|
@ -0,0 +1,10 @@
|
|||||||
|
# Enable connectivity checking for NetworkManager.
|
||||||
|
# See `man NetworkManager.conf`.
|
||||||
|
#
|
||||||
|
# Note that connectivity checking works badly with rp_filter set to
|
||||||
|
# strict. Check "/proc/sys/net/ipv4/conf/*/rp_filter".
|
||||||
|
[connectivity]
|
||||||
|
enabled=true
|
||||||
|
uri=http://static.redhat.com/test/rhel-networkmanager.txt
|
||||||
|
response=OK
|
||||||
|
interval=300
|
@ -0,0 +1,31 @@
|
|||||||
|
# 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
|
@ -0,0 +1,15 @@
|
|||||||
|
# The Strict mode of RFC3704 Reverse Path filtering breaks some pretty
|
||||||
|
# common and reasonable use cases.
|
||||||
|
#
|
||||||
|
# Notably, it makes it impossible for NetworkManager to do connectivity
|
||||||
|
# check on a newly arriving default route (it starts with a higher metric
|
||||||
|
# and is bumped lower if there's connectivity).
|
||||||
|
#
|
||||||
|
# Kernel's default is 0 (no filter), systemd configures a Loose filter since
|
||||||
|
# commit 230450d4e4f1 ('sysctl.d: switch net.ipv4.conf.all.rp_filter from 1
|
||||||
|
# to 2'). However, RHEL systemd package happens to default to Strict mode
|
||||||
|
# for historic reasons. Let's override it if we're doing connectivity
|
||||||
|
# checking.
|
||||||
|
|
||||||
|
# Source route verification
|
||||||
|
net.ipv4.conf.all.rp_filter = 0
|
@ -0,0 +1,52 @@
|
|||||||
|
# Configuration file for NetworkManager.
|
||||||
|
#
|
||||||
|
# See "man 5 NetworkManager.conf" for details.
|
||||||
|
#
|
||||||
|
# The directories /usr/lib/NetworkManager/conf.d/ and /run/NetworkManager/conf.d/
|
||||||
|
# can contain additional .conf snippets installed by packages. These files are
|
||||||
|
# read before NetworkManager.conf and have thus lowest priority.
|
||||||
|
# The directory /etc/NetworkManager/conf.d/ can contain additional .conf
|
||||||
|
# snippets. Those snippets are merged last and overwrite the settings from this main
|
||||||
|
# file.
|
||||||
|
#
|
||||||
|
# The files within one conf.d/ directory are read in asciibetical order.
|
||||||
|
#
|
||||||
|
# You can prevent loading a file /usr/lib/NetworkManager/conf.d/NAME.conf
|
||||||
|
# by having a file NAME.conf in either /run/NetworkManager/conf.d/ or /etc/NetworkManager/conf.d/.
|
||||||
|
# Likewise, snippets from /run can be prevented from loading by placing
|
||||||
|
# a file with the same name in /etc/NetworkManager/conf.d/.
|
||||||
|
#
|
||||||
|
# If two files define the same key, the one that is read afterwards will overwrite
|
||||||
|
# the previous one.
|
||||||
|
|
||||||
|
[main]
|
||||||
|
#plugins=keyfile,ifcfg-rh
|
||||||
|
|
||||||
|
|
||||||
|
[logging]
|
||||||
|
# When debugging NetworkManager, enabling debug logging is of great help.
|
||||||
|
#
|
||||||
|
# Logfiles contain no passwords and little sensitive information. But please
|
||||||
|
# check before posting the file online. You can also personally hand over the
|
||||||
|
# logfile to a NM developer to treat it confidential. Meet us on #nm on Libera.Chat.
|
||||||
|
#
|
||||||
|
# You can also change the log-level at runtime via
|
||||||
|
# $ nmcli general logging level TRACE domains ALL
|
||||||
|
# However, usually it's cleaner to enable debug logging
|
||||||
|
# in the configuration and restart NetworkManager so that
|
||||||
|
# debug logging is enabled from the start.
|
||||||
|
#
|
||||||
|
# You will find the logfiles in syslog, for example via
|
||||||
|
# $ journalctl -u NetworkManager
|
||||||
|
#
|
||||||
|
# Please post full logfiles for bug reports without pre-filtering or truncation.
|
||||||
|
# Also, for debugging the entire `journalctl` output can be interesting. Don't
|
||||||
|
# limit unnecessarily with `journalctl -u`. Exceptions are if you are worried
|
||||||
|
# about private data. Check before posting logfiles!
|
||||||
|
#
|
||||||
|
# Note that debug logging of NetworkManager can be quite verbose. Some messages
|
||||||
|
# might be rate-limited by the logging daemon (see RateLimitIntervalSec, RateLimitBurst
|
||||||
|
# in man journald.conf). Please disable rate-limiting before collecting debug logs!
|
||||||
|
#
|
||||||
|
#level=TRACE
|
||||||
|
#domains=ALL
|
@ -0,0 +1,84 @@
|
|||||||
|
NetworkManager was built to automatically migrate connection profiles in
|
||||||
|
this directory to equivalent ones in keyfile format in directory
|
||||||
|
/etc/NetworkManager/system-connections.
|
||||||
|
|
||||||
|
You can check whether the migration is enabled via:
|
||||||
|
|
||||||
|
$ NetworkManager --print-config | grep migrate-ifcfg-rh
|
||||||
|
|
||||||
|
In case it is enabled, all files in this directory are migrated at startup.
|
||||||
|
|
||||||
|
To inspect where your connection files are currently stored use:
|
||||||
|
|
||||||
|
$ nmcli -f name,uuid,filename connection
|
||||||
|
|
||||||
|
Background
|
||||||
|
==========
|
||||||
|
|
||||||
|
The ifcfg format is deprecated and will be removed in future releases. For
|
||||||
|
more information see:
|
||||||
|
|
||||||
|
https://lists.freedesktop.org/archives/networkmanager/2023-May/000103.html
|
||||||
|
|
||||||
|
Connection profiles in keyfile format have many benefits. For example, this
|
||||||
|
format is INI file-based and can easily be parsed and generated.
|
||||||
|
|
||||||
|
Each section in NetworkManager keyfiles corresponds to a NetworkManager
|
||||||
|
setting name as described in the nm-settings(5) and nm-settings-keyfile(5)
|
||||||
|
man pages. Each key-value pair in a section is one of the properties listed
|
||||||
|
in the settings specification of the man page.
|
||||||
|
|
||||||
|
How to keep using ifcfg
|
||||||
|
=======================
|
||||||
|
|
||||||
|
If you want to keep using connection profiles in ifcfg format, you need to:
|
||||||
|
|
||||||
|
- disable the automatic migration to keyfile by setting
|
||||||
|
"migrate-ifcfg-rh=false" in the [main] section of NetworkManager
|
||||||
|
configuration;
|
||||||
|
|
||||||
|
- optionally, set "plugins=ifcfg-rh" in the [main] section of
|
||||||
|
NetworkManager configuration so that new profiles are created in ifcfg
|
||||||
|
format.
|
||||||
|
|
||||||
|
At this point, you can migrate all your files back via
|
||||||
|
|
||||||
|
nmcli connection migrate --plugin ifcfg-rh
|
||||||
|
|
||||||
|
Or, if you prefer to migrate only specific connections:
|
||||||
|
|
||||||
|
nmcli connection migrate --plugin ifcfg-rh <profile_name|UUID>
|
||||||
|
|
||||||
|
Note that some connection types are not supported by the ifcfg plugin.
|
||||||
|
|
||||||
|
Interface renaming
|
||||||
|
==================
|
||||||
|
|
||||||
|
Connection profiles stored in ifcfg-rh format support the renaming of
|
||||||
|
interfaces via udev. This is done via a helper tool
|
||||||
|
/usr/lib/udev/rename_device that is invoked by udev to parse the files
|
||||||
|
in /etc/sysconfig/network-scripts; when the HWADDR and DEVICE
|
||||||
|
variables are set, the interface that matches the MAC address in
|
||||||
|
HWADDR is renamed to the name specified in DEVICE.
|
||||||
|
|
||||||
|
Connections in keyfile format don't provide the same integration with
|
||||||
|
udev. The renaming of interfaces must be configured directly in udev,
|
||||||
|
for example by creating a file:
|
||||||
|
|
||||||
|
/etc/systemd/network/70-rename.link
|
||||||
|
|
||||||
|
with content:
|
||||||
|
|
||||||
|
[Match]
|
||||||
|
MACAddress=00:11:22:33:44:56
|
||||||
|
|
||||||
|
[Link]
|
||||||
|
Name=ethernet1
|
||||||
|
|
||||||
|
Alternatively, a udev rule can also be used, such as:
|
||||||
|
|
||||||
|
/etc/udev/rules.d/70-interface-names.rules
|
||||||
|
|
||||||
|
with content:
|
||||||
|
|
||||||
|
SUBSYSTEM=="net",ACTION=="add",ATTR{address}=="00:11:22:33:44:56",ATTR{type}=="1",NAME="ethernet1"
|
@ -0,0 +1,63 @@
|
|||||||
|
NetworkManager stores new network profiles in keyfile format in the
|
||||||
|
/etc/NetworkManager/system-connections/ directory.
|
||||||
|
|
||||||
|
Previously, NetworkManager stored network profiles in ifcfg format
|
||||||
|
in this directory (/etc/sysconfig/network-scripts/). However, the ifcfg
|
||||||
|
format is deprecated. By default, NetworkManager no longer creates
|
||||||
|
new profiles in this format.
|
||||||
|
|
||||||
|
Connection profiles in keyfile format have many benefits. For example,
|
||||||
|
this format is INI file-based and can easily be parsed and generated.
|
||||||
|
|
||||||
|
Each section in NetworkManager keyfiles corresponds to a NetworkManager
|
||||||
|
setting name as described in the nm-settings(5) and nm-settings-keyfile(5)
|
||||||
|
man pages. Each key-value-pair in a section is one of the properties
|
||||||
|
listed in the settings specification of the man page.
|
||||||
|
|
||||||
|
If you still use network profiles in ifcfg format, consider migrating
|
||||||
|
them to keyfile format. To migrate all profiles at once, enter:
|
||||||
|
|
||||||
|
# nmcli connection migrate
|
||||||
|
|
||||||
|
This command migrates all profiles from ifcfg format to keyfile
|
||||||
|
format and stores them in /etc/NetworkManager/system-connections/.
|
||||||
|
|
||||||
|
Alternatively, to migrate only a specific profile, enter:
|
||||||
|
|
||||||
|
# nmcli connection migrate <profile_name|UUID|D-Bus_path>
|
||||||
|
|
||||||
|
For further details, see:
|
||||||
|
* nm-settings-keyfile(5)
|
||||||
|
* nmcli(1)
|
||||||
|
|
||||||
|
Interface renaming
|
||||||
|
==================
|
||||||
|
|
||||||
|
Connection profiles stored in ifcfg-rh format support the renaming of
|
||||||
|
interfaces via udev. This is done via a helper tool
|
||||||
|
/usr/lib/udev/rename_device that is invoked by udev to parse the files
|
||||||
|
in /etc/sysconfig/network-scripts; when the HWADDR and DEVICE
|
||||||
|
variables are set, the interface that matches the MAC address in
|
||||||
|
HWADDR is renamed to the name specified in DEVICE.
|
||||||
|
|
||||||
|
Connections in keyfile format don't provide the same integration with
|
||||||
|
udev. The renaming of interfaces must be configured directly in udev,
|
||||||
|
for example by creating a file:
|
||||||
|
|
||||||
|
/etc/systemd/network/70-rename.link
|
||||||
|
|
||||||
|
with content:
|
||||||
|
|
||||||
|
[Match]
|
||||||
|
MACAddress=00:11:22:33:44:56
|
||||||
|
|
||||||
|
[Link]
|
||||||
|
Name=ethernet1
|
||||||
|
|
||||||
|
Alternatively, a udev rule can also be used, such as:
|
||||||
|
|
||||||
|
/etc/udev/rules.d/70-interface-names.rules
|
||||||
|
|
||||||
|
with content:
|
||||||
|
|
||||||
|
SUBSYSTEM=="net",ACTION=="add",ATTR{address}=="00:11:22:33:44:56",ATTR{type}=="1",NAME="ethernet1"
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue