misc/debian/bullseye/systemd/network/examples/static.conf

41 lines
624 B
Plaintext
Raw Normal View History

[Network]
# Put global network options here.
DNSOverTLS=opportunistic
2022-03-27 10:27:24 +00:00
# Link discovery causes some issues so disable it.
LLDP=no
2022-03-27 10:27:24 +00:00
# IPv6 - must come before IPv4, or some weird things happen.
[Route]
2022-03-27 10:27:24 +00:00
# v6
Gateway=<IPv6>
# Not always needed but here just in case.
GatewayOnLink=yes
2022-03-27 10:27:24 +00:00
[Network]
Address=<IPv6>/prefix
# DNS
# Cloudflare 2606:4700:4700::1111 / 2606:4700:4700::1001
DNS=2606:4700:4700::1111
DNS=2606:4700:4700::1001
2022-03-27 10:27:24 +00:00
# IPv4
[Route]
Gateway=<IPv4>
# Not always needed but here just in case.
GatewayOnLink=yes
[Network]
2022-03-27 10:27:24 +00:00
# v4
Address=<IPv4>/prefix
# DNS
# Cloudflare 1.1.1.1 / 1.0.0.1
2022-03-27 10:27:24 +00:00
DNS=1.1.1.1
DNS=1.0.0.1