2020-05-30 00:01:28 +02:00
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2020-05-30 20:58:48 +02:00
|
|
|
[Match]
|
2021-05-17 14:19:28 +02:00
|
|
|
Name=wl*
|
2020-05-30 20:58:48 +02:00
|
|
|
|
|
|
|
[Network]
|
2020-06-29 16:58:19 +02:00
|
|
|
DHCP=yes
|
2020-05-30 20:58:48 +02:00
|
|
|
IPv6PrivacyExtensions=yes
|
|
|
|
|
2021-07-09 16:01:57 +02:00
|
|
|
# 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
|
2021-03-20 12:04:10 +01:00
|
|
|
[DHCPv4]
|
2021-07-09 16:01:57 +02:00
|
|
|
RouteMetric=600
|
2021-03-20 12:04:10 +01:00
|
|
|
|
2021-07-09 16:01:57 +02:00
|
|
|
[IPv6AcceptRA]
|
|
|
|
RouteMetric=600
|