From 8ae5c85bc9ee9938298d626aa1699a3596c3527b Mon Sep 17 00:00:00 2001 From: mpmc Date: Sun, 18 Jun 2023 11:12:12 +0100 Subject: [PATCH] qmi-network@.service - add a note about metrics & set a "more sane" normal metric value --- systemd/system/qmi-network@.service | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/systemd/system/qmi-network@.service b/systemd/system/qmi-network@.service index faf439d..8f82d8f 100755 --- a/systemd/system/qmi-network@.service +++ b/systemd/system/qmi-network@.service @@ -21,15 +21,21 @@ KillMode=process ## +# A note on metrics. +# The lower the value the more priority the route has over others. + +# Normal metric (Set this higher so it won't be used over the default +# route). +Environment=NMETRIC=2048 + +# Failover metric (Set this lower so it's the default route when other +routes fail). +Environment=FOMETRIC=128 + # Ping host. Environment=PHOST="dns9.quad9.net" Environment=PHOSTIP="9.9.9.9" -# Normal wwan%i metric (should be higher than all other dev). -Environment=NMETRIC=1025 - -# Failover wwan%i metric. -Environment=FOMETRIC=128 # Ping test interval. Environment=PTESTINT=20