mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-12-22 18:52:45 +01:00
systemd/network: add drop-ins to expand usefulness
This commit is contained in:
parent
0a86db3328
commit
0fb190191e
@ -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=
|
||||
|
16
etc/systemd/network/10-ether.network.d/home-static.conf
Normal file
16
etc/systemd/network/10-ether.network.d/home-static.conf
Normal 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
|
7
etc/systemd/network/10-wlan.network.d/example.conf
Normal file
7
etc/systemd/network/10-wlan.network.d/example.conf
Normal 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
|
Loading…
Reference in New Issue
Block a user