mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-12-23 03:02:52 +01:00
systemd-networkd: attempt to deduplicate by cutting into 10-global.network
This commit is contained in:
parent
aac3ccdec3
commit
19b6fbef3c
@ -1,5 +1,4 @@
|
|||||||
[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
|
||||||
@ -12,27 +11,11 @@ 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
|
||||||
IPv6PrivacyExtensions=true
|
#DNS=
|
||||||
IPv6LinkLocalAddressGenerationMode=stable-privacy
|
#NTP=
|
||||||
# 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
|
|
||||||
|
32
etc/systemd/network/10-global.network
Normal file
32
etc/systemd/network/10-global.network
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
[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
|
@ -17,9 +17,3 @@ Multicast=true
|
|||||||
|
|
||||||
[Network]
|
[Network]
|
||||||
DHCP=true
|
DHCP=true
|
||||||
IPv6PrivacyExtensions=true
|
|
||||||
IPv6LinkLocalAddressGenerationMode=stable-privacy
|
|
||||||
# Enable mDNS/.local for systemd-resolved
|
|
||||||
MulticastDNS=true
|
|
||||||
# Windows
|
|
||||||
LLMNR=true
|
|
||||||
|
Loading…
Reference in New Issue
Block a user