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 Type=ether
[Link] [Link]
RequiredForOnline=false # I always mask systemd-networkd-wait-online.service anyway, so everything can
# If something else (like NetworkManager) manages network, uncomment # be required for online if it wants to be.
#Unmanaged=true ActivationPolicy=always-up
# Required for mDNS # Nothing else is managing addressing etc.
#Multicast=true Unmanaged=false
[Network] [Network]
DHCP=true DHCP=true
# systemctl enable systemd-resolved && systemctl start systemd-resolved IPv6PrivacyExtensions=true
# ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf IPv6LinkLocalAddressGenerationMode=stable-privacy
DNS=
DNS=::1
DNS=127.0.0.1
DNS=127.0.0.53
DNSSEC=true DNSSEC=true
#DNSOverTLS=opportunistic
DNSOverTLS=true DNSOverTLS=true
# Search domains
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? # Dock MACAddress here?
MACAddress=ff:ff:ff:ff:ff:ff MACAddress=ff:ff:ff:ff:ff:ff
[Link] # Redunant for reading in the main file, but reminder never hurts?
RequiredForOnline=true #[Link]
# Takes "ipv4", "ipv6", "both", or "any" (default). #ActivationPolicy=always-up
#RequiredFamilyForOnline=both
ActivationPolicy=always-up
[Network] [Network]
# /24, /16, /8 are the the class C, B, A networks # /24, /16, /8 are the the class C, B, A networks

View File

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