2015-04-29 09:41:42 +02:00
|
|
|
[Match]
|
2024-04-22 11:21:56 +02:00
|
|
|
#Name=*
|
2023-07-04 10:24:29 +02:00
|
|
|
# Can be {colon,hyphen,dot}-delimited hexadecimal or IPv{4,6} address
|
|
|
|
#MACAddress=
|
|
|
|
Type=ether
|
2015-04-29 09:41:42 +02:00
|
|
|
|
2023-03-31 12:33:27 +02:00
|
|
|
[Link]
|
|
|
|
# My devices generally also have WiFi so lack of ethernet is not a reason
|
|
|
|
# to wait for systemd-networkd-wait-online.service
|
2024-04-12 08:52:32 +02:00
|
|
|
RequiredForOnline=false
|
2023-08-23 13:40:18 +02:00
|
|
|
# Takes "ipv4", "ipv6", "both", or "any" (default).
|
|
|
|
RequiredFamilyForOnline=both
|
2024-04-22 12:09:05 +02:00
|
|
|
# If something else (like NetworkManager) manages network, uncomment
|
|
|
|
#Unmanaged=true
|
2024-04-12 08:52:32 +02:00
|
|
|
# Always set administrative state to up. Implies RequiredForOnline=true
|
2023-03-31 12:33:27 +02:00
|
|
|
#ActivationPolicy=always-up
|
2024-04-22 11:21:56 +02:00
|
|
|
# Required for mDNS
|
|
|
|
Multicast=true
|
2023-03-31 12:33:27 +02:00
|
|
|
|
2015-04-29 09:41:42 +02:00
|
|
|
[Network]
|
2024-04-12 08:52:32 +02:00
|
|
|
#DHCP=true
|
2023-03-07 13:46:28 +01:00
|
|
|
# /24, /16, /8 are the the class C, B, A networks
|
|
|
|
Address=192.168.0.2/24
|
|
|
|
Gateway=192.168.0.1
|
2024-04-22 11:21:56 +02:00
|
|
|
IPv6PrivacyExtensions=true
|
|
|
|
IPv6LinkLocalAddressGenerationMode=stable-privacy
|
|
|
|
# systemctl enable systemd-resolved && systemctl start systemd-resolved
|
|
|
|
# ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
|
2024-04-22 12:32:12 +02:00
|
|
|
DNS=
|
2024-04-22 11:59:38 +02:00
|
|
|
DNS=::1
|
|
|
|
DNS=127.0.0.1
|
|
|
|
DNS=127.0.0.53
|
2024-04-22 14:12:07 +02:00
|
|
|
DNSSEC=true
|
2024-04-22 14:43:50 +02:00
|
|
|
#DNSOverTLS=opportunistic
|
|
|
|
DNSOverTLS=true
|
2024-04-22 11:25:25 +02:00
|
|
|
# Search domains
|
|
|
|
Domains=.
|
2024-04-22 11:21:56 +02:00
|
|
|
# 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
|
2024-06-28 10:49:23 +02:00
|
|
|
#MulticastDNS=true
|
2024-04-22 11:21:56 +02:00
|
|
|
# Windows
|
2024-06-28 10:49:23 +02:00
|
|
|
#LLMNR=true
|