20-ethernet.network 553 Bytes
Newer Older
1
[Match]
2
3
Name=en*
Name=eth*
4
5

[Network]
David Runge's avatar
David Runge committed
6
DHCP=yes
7
8
IPv6PrivacyExtensions=yes

9
10
11
12
13
# 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
14
[DHCPv4]
15
RouteMetric=100
16

17
18
[IPv6AcceptRA]
RouteMetric=100