How to set network metric with NetworkManager

Sometimes we want to have several connections at the same time, one to the ethernet (wired lan) and one other to the wireless router, with two different gateways. In this documentation i describe how to make wireless connection prior to ethernet connection in each linux OS using NetworkManager service to moderate network connections. I’ve tested these instruction in fedora 31 already.

List you connections

Edit the wireless connection

Edit the ethernet connection

Restart NetworkManager service

Congratulation! routes related to the WiFi connection (named bevaght) are prior to routes related to the Ethernet connection (named eth1)