changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > infra > box / airootfs/etc/systemd/network/20-ethernet.network

changeset 2: 2fafbe22bd34
author: Richard Westhaver <ellis@rwest.io>
date: Fri, 31 May 2024 17:30:09 -0400
permissions: -rw-r--r--
description: init releng
1 [Match]
2 # Matching with "Type=ether" causes issues with containers because it also matches virtual Ethernet interfaces (veth*).
3 # See https://bugs.archlinux.org/task/70892
4 # Instead match by globbing the network interface name.
5 Name=en*
6 Name=eth*
7 
8 [Link]
9 RequiredForOnline=routable
10 
11 [Network]
12 DHCP=yes
13 MulticastDNS=yes
14 
15 # systemd-networkd does not set per-interface-type default route metrics
16 # https://github.com/systemd/systemd/issues/17698
17 # Explicitly set route metric, so that Ethernet is preferred over Wi-Fi and Wi-Fi is preferred over mobile broadband.
18 # Use values from NetworkManager. From nm_device_get_route_metric_default in
19 # https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/main/src/core/devices/nm-device.c
20 [DHCPv4]
21 RouteMetric=100
22 
23 [IPv6AcceptRA]
24 RouteMetric=100