Prioritize ethernet over WiFi

This commit is contained in:
coolneng 2022-04-29 18:12:46 +02:00
parent bdc3d38f38
commit c42d36bb5e
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 4 additions and 0 deletions

View File

@ -21,6 +21,10 @@
};
systemd.services."systemd-networkd-wait-online".enable = false;
# Prioritize ethernet over WiFi
systemd.network.networks."40-enp0s31f6".dhcpV4Config.RouteMetric = 10;
systemd.network.networks."40-wlan0".dhcpV4Config.RouteMetric = 20;
# Static IP for home network
systemd.network.networks."24-home" = {
name = "wlan0";