mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-22 03:09:22 +01:00
systemd/network: add drop-ins to expand usefulness
This commit is contained in:
parent
0a86db3328
commit
0fb190191e
@ -1,25 +1,15 @@
|
|||||||
[Match]
|
[Match]
|
||||||
#MACAddress=
|
|
||||||
Type=ether
|
Type=ether
|
||||||
|
|
||||||
[Link]
|
[Link]
|
||||||
RequiredForOnline=false
|
RequiredForOnline=false
|
||||||
# Takes "ipv4", "ipv6", "both", or "any" (default).
|
|
||||||
RequiredFamilyForOnline=both
|
|
||||||
# If something else (like NetworkManager) manages network, uncomment
|
# If something else (like NetworkManager) manages network, uncomment
|
||||||
#Unmanaged=true
|
#Unmanaged=true
|
||||||
# Always set administrative state to up. Implies RequiredForOnline=true
|
|
||||||
#ActivationPolicy=always-up
|
|
||||||
# Required for mDNS
|
# Required for mDNS
|
||||||
#Multicast=true
|
#Multicast=true
|
||||||
|
|
||||||
[Network]
|
[Network]
|
||||||
#DHCP=true
|
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
|
|
||||||
# systemctl enable systemd-resolved && systemctl start systemd-resolved
|
# systemctl enable systemd-resolved && systemctl start systemd-resolved
|
||||||
# ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
|
# ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
|
||||||
DNS=
|
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