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

41 lines
624 B
Plaintext
Executable File

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