systemd-networkd: clean up lines I always clean up anyway

This commit is contained in:
Aminda Suomalainen 2024-07-30 14:08:44 +03:00
parent c37af52cec
commit 8a52d849bc
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
3 changed files with 14 additions and 48 deletions

View File

@ -2,30 +2,16 @@
Type=ether
[Link]
RequiredForOnline=false
# If something else (like NetworkManager) manages network, uncomment
#Unmanaged=true
# Required for mDNS
#Multicast=true
# I always mask systemd-networkd-wait-online.service anyway, so everything can
# be required for online if it wants to be.
ActivationPolicy=always-up
# Nothing else is managing addressing etc.
Unmanaged=false
[Network]
DHCP=true
# systemctl enable systemd-resolved && systemctl start systemd-resolved
# ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
DNS=
DNS=::1
DNS=127.0.0.1
DNS=127.0.0.53
IPv6PrivacyExtensions=true
IPv6LinkLocalAddressGenerationMode=stable-privacy
DNSSEC=true
#DNSOverTLS=opportunistic
DNSOverTLS=true
# Search domains
Domains=.
# Enable systemd-timesyncd with `timedatectl set-ntp true`, may be specified
# multiple times, but you are using Chrony instead, right?
#NTP=fi.pool.ntp.org
#NTP=time.cloudflare.com
# Enable mDNS/.local for systemd-resolved
#MulticastDNS=true
# Windows
#LLMNR=true

View File

@ -2,11 +2,9 @@
# Dock MACAddress here?
MACAddress=ff:ff:ff:ff:ff:ff
[Link]
RequiredForOnline=true
# Takes "ipv4", "ipv6", "both", or "any" (default).
#RequiredFamilyForOnline=both
ActivationPolicy=always-up
# Redunant for reading in the main file, but reminder never hurts?
#[Link]
#ActivationPolicy=always-up
[Network]
# /24, /16, /8 are the the class C, B, A networks

View File

@ -1,35 +1,17 @@
[Match]
#Name=*
# Can be {colon,hyphen,dot}-delimited hexadecimal or IPv{4,6} address
#MACAddress=
Type=wlan
[Link]
# Takes "ipv4", "ipv6", "both", or "any" (default).
#RequiredFamilyForOnline=both
# Always set administrative state to up. Implies RequiredForOnline=true
# I always mask systemd-networkd-wait-online.service anyway, so everything can
# be required for online if it wants to be.
ActivationPolicy=always-up
# If something else (like iwd EnableNetworkConfiguration=true) manages network,
# uncomment
#Unmanaged=true
# Required for mDNS
#Multicast=true
# Nothing else is managing addressing etc.
Unmanaged=false
[Network]
DHCP=true
IPv6PrivacyExtensions=true
IPv6LinkLocalAddressGenerationMode=stable-privacy
DNS=
DNS=::1
DNS=127.0.0.1
DNS=127.0.0.53
# Enable mDNS/.local for systemd-resolved
#MulticastDNS=true
# Windows
#LLMNR=true
# systemd-resolved configuration
DNSSEC=true
#DNSOverTLS=opportunistic
DNSOverTLS=true
# Search domains
Domains=.