You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.8 KiB
1.8 KiB
+++ title = "Network-metrics on Fedora 36" summary = """quick n dirty...""" date = "2022-10-23T20:15:44+02:00" lastmod = "2022-12-04T22:30:18+01:00" categories = ["computerstuff"] tags = ["fedora","linux","networking"]
draft = true
+++
first
If you are using NetworkManager, the proper way to change the metric for the default route is to modify the connection associated with interface enp0s3 in this way:
$ nmcli connection modify <connection-name> ipv4.route-metric 1
and then re-activate the connection:
$ nmcli connection up <connection-name>
You can find the value for in the output of nmcli connection.
second
$ nmcli connection
NAME UUID TYPE DEVICE >
Magneto_5G 923ab10b-be81-4668-9aab-9602f11db2e5 wifi wlx00259ce03>
Alfodr b2bcc61c-19df-41f0-9790-ad1f7f8113f1 wifi wlo1 >
Kabelgebundene Verbindung 1 c75abc26-19eb-3fec-81b1-c4716b39a8f1 ethernet --
$ nmcli connection edit Alfodr
===| nmcli interaktive Verbindungsbearbeitung |===
Bestehende Verbindung »802-11-wireless« wird bearbeitet: »Alfodr«
Tippen Sie »help« oder »?«, um verfügbare Befehle anzuzeigen.
Geben Sie »print« ein, um alle Verbindungseigenschaften anzuzeigen.
Tippen Sie »describe [<Einstellung>.<Eigenschaft>]« für eine detaillierte Eigenschaftenbeschreibung.
Sie können die folgenden Einstellungen bearbeiten: connection, 802-11-wireless (wifi), 802-11-wireless-security (wifi-sec), 802-1x, ethtool, match, ipv4, ipv6, hostname, tc, proxy
nmcli> set ipv4.route-metric 599
nmcli> save
nmcli> quit
$ sudo systemctl restart NetworkManager
Check routing table with
$ ip route
(which can also be written as ip r
)