diff --git a/system_files/shared/usr/etc/NetworkManager/NetworkManager.conf b/system_files/shared/usr/etc/NetworkManager/NetworkManager.conf new file mode 100644 index 00000000000..924edcffdb2 --- /dev/null +++ b/system_files/shared/usr/etc/NetworkManager/NetworkManager.conf @@ -0,0 +1,56 @@ +# 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 + +[keyfile] +unmanaged-devices=interface-name:enp*s*v* +unmanaged-devices=interface-name:phys* diff --git a/system_files/shared/usr/etc/NetworkManager/system-connections/100g.10.nmconnection b/system_files/shared/usr/etc/NetworkManager/system-connections/100g.10.nmconnection new file mode 100644 index 00000000000..99df2eb3f3d --- /dev/null +++ b/system_files/shared/usr/etc/NetworkManager/system-connections/100g.10.nmconnection @@ -0,0 +1,16 @@ +[connection] +id=100g.10 +type=vlan +interface-name=100g.10 + +[vlan] +flags=1 +id=10 +parent=100g + +[ipv4] +method=auto + +[ipv6] +addr-gen-mode=stable-privacy +method=auto diff --git a/system_files/shared/usr/etc/NetworkManager/system-connections/onboard.nmconnection b/system_files/shared/usr/etc/NetworkManager/system-connections/onboard.nmconnection new file mode 100644 index 00000000000..978cdefdb14 --- /dev/null +++ b/system_files/shared/usr/etc/NetworkManager/system-connections/onboard.nmconnection @@ -0,0 +1,12 @@ +[connection] +id=Onboard +type=ethernet +autoconnect=false +interface-name=onboard + +[ipv4] +method=auto + +[ipv6] +addr-gen-mode=stable-privacy +method=auto diff --git a/system_files/shared/usr/etc/udev/rules.d/70-persistent-net.rules b/system_files/shared/usr/etc/udev/rules.d/70-persistent-net.rules new file mode 100644 index 00000000000..45884b6e1bd --- /dev/null +++ b/system_files/shared/usr/etc/udev/rules.d/70-persistent-net.rules @@ -0,0 +1,3 @@ +# Rename NICs +SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="04:7c:16:6d:bd:cf", ATTR{dev_id}=="0x0", ATTR{type}=="1", NAME="onboard" +SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="1c:34:da:55:77:04", ATTR{dev_id}=="0x0", ATTR{type}=="1", NAME="100g"