Skip to content

Commit

Permalink
add host-specific config
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomekyle committed Apr 16, 2024
1 parent c743e20 commit 7f5540f
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 0 deletions.
56 changes: 56 additions & 0 deletions system_files/shared/usr/etc/NetworkManager/NetworkManager.conf
Original file line number Diff line number Diff line change
@@ -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*
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 7f5540f

Please sign in to comment.