You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
773 B

4 years ago
[Match]
3 years ago
# Matching with "Type=ether" causes issues with containers because it also matches virtual Ethernet interfaces (veth*).
# See https://bugs.archlinux.org/task/70892
# Instead match by globbing the network interface name.
3 years ago
Name=en*
Name=eth*
4 years ago
[Network]
DHCP=yes
IPv6PrivacyExtensions=yes
3 years ago
# systemd-networkd does not set per-interface-type default route metrics
# https://github.com/systemd/systemd/issues/17698
# Explicitly set route metric, so that Ethernet is preferred over Wi-Fi and Wi-Fi is preferred over mobile broadband.
# Use values from NetworkManager. From nm_device_get_route_metric_default in
# https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/main/src/core/devices/nm-device.c
4 years ago
[DHCPv4]
3 years ago
RouteMetric=100
4 years ago
3 years ago
[IPv6AcceptRA]
RouteMetric=100