Revert "systemd-networkd: attempt to deduplicate by cutting into 10-global.network"

This reverts commit 19b6fbef3c.
This commit is contained in:
Aminda Suomalainen 2024-04-22 12:21:56 +03:00
parent 06787a38de
commit 945ca0462d
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
3 changed files with 25 additions and 34 deletions

View File

@ -1,4 +1,5 @@
[Match] [Match]
#Name=*
# Can be {colon,hyphen,dot}-delimited hexadecimal or IPv{4,6} address # Can be {colon,hyphen,dot}-delimited hexadecimal or IPv{4,6} address
#MACAddress= #MACAddress=
Type=ether Type=ether
@ -11,11 +12,27 @@ RequiredForOnline=false
RequiredFamilyForOnline=both RequiredFamilyForOnline=both
# Always set administrative state to up. Implies RequiredForOnline=true # Always set administrative state to up. Implies RequiredForOnline=true
#ActivationPolicy=always-up #ActivationPolicy=always-up
# Required for mDNS
Multicast=true
[Network] [Network]
#DHCP=true #DHCP=true
# /24, /16, /8 are the the class C, B, A networks # /24, /16, /8 are the the class C, B, A networks
Address=192.168.0.2/24 Address=192.168.0.2/24
Gateway=192.168.0.1 Gateway=192.168.0.1
#DNS= IPv6PrivacyExtensions=true
#NTP= IPv6LinkLocalAddressGenerationMode=stable-privacy
# DNS has no effect unless systemd-resolved is used. Why would it be used?
# systemctl enable systemd-resolved && systemctl start systemd-resolved
# ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
#DNS=127.0.0.1
#DNS=::1
#DNS=8.8.4.4
# 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

@ -1,32 +0,0 @@
[Match]
Name=*
[Link]
# required for mDNS
Multicast=true
[Network]
# Enable privacy extensions
IPv6PrivacyExtensions=true
IPv6LinkLocalAddressGenerationMode=stable-privacy
# systemd-resolved configuration
DNSSEC=true
#DNSSEC=allow-downgrade
DNSOverTLS=true
#DNSOverTLS=opportunistic
# Search domains
Domains=.
# Enable mDNS/.local for systemd-resolved
MulticastDNS=true
# Windows
LLMNR=true
# DNS has no effect unless systemd-resolved is used. Why would it be used?
# systemctl enable systemd-resolved && systemctl start systemd-resolved
# ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
#DNS=127.0.0.1
#DNS=::1
#DNS=8.8.4.4
# 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

View File

@ -17,3 +17,9 @@ Multicast=true
[Network] [Network]
DHCP=true DHCP=true
IPv6PrivacyExtensions=true
IPv6LinkLocalAddressGenerationMode=stable-privacy
# Enable mDNS/.local for systemd-resolved
MulticastDNS=true
# Windows
LLMNR=true