systemd/network: add drop-ins to expand usefulness

This commit is contained in:
Aminda Suomalainen 2024-07-24 19:21:32 +03:00
parent 0a86db3328
commit 0fb190191e
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
3 changed files with 24 additions and 11 deletions

View File

@ -1,25 +1,15 @@
[Match]
#MACAddress=
Type=ether
[Link]
RequiredForOnline=false
# Takes "ipv4", "ipv6", "both", or "any" (default).
RequiredFamilyForOnline=both
# If something else (like NetworkManager) manages network, uncomment
#Unmanaged=true
# Always set administrative state to up. Implies RequiredForOnline=true
#ActivationPolicy=always-up
# Required for mDNS
#Multicast=true
[Network]
#DHCP=true
# /24, /16, /8 are the the class C, B, A networks
Address=192.168.0.2/24
Gateway=192.168.0.1
IPv6PrivacyExtensions=true
IPv6LinkLocalAddressGenerationMode=stable-privacy
DHCP=true
# systemctl enable systemd-resolved && systemctl start systemd-resolved
# ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
DNS=

View File

@ -0,0 +1,16 @@
[Match]
# 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
[Network]
# /24, /16, /8 are the the class C, B, A networks
Address=192.168.0.2/24
Gateway=192.168.0.1
IPv6PrivacyExtensions=true
IPv6LinkLocalAddressGenerationMode=stable-privacy

View File

@ -0,0 +1,7 @@
[Match]
SSID=ExampleSSID_nomap BusinessSSID_nomap
[Network]
DHCP=false
Address=10.1.2.3/8
Gateway=10.0.0.1