My wireless network is bridged to my wired network, so both have the same subnet. How do I tell NetworkManager to give the local subnet route on the wireless interface a higher metric than the route on the wired interface? There used to be a route-metric option (see here), but this does not seem to be supported on my system, I get an invalid property 'route-metric' when trying to modify my connection using nmcli.

Note: I'm not talking about the default route here, that seems to work properly 'out of the box': that one does use the wired interface.

  • I dont' use gui's however read man route and search for the word metric, I think it's what you are looking for. – gwillie Aug 9 '15 at 23:37
  • Doing it manually is no problem. But, I want it to be done automatically each time I connect to my wired network :) – Michel Aug 10 '15 at 18:13
  • See also this SuperUser question whose answer is applicable to Debian/Ubuntu-based users. That answer also notes that there is now a metric field in the NetworkManager GUI, so I assume nmcli also now allows it. – Adam Katz May 17 '18 at 13:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.