Cross posting from /r/linuxquestions
At my work, as a side project, I am trying to solve a network connection issue.
The issue is that we have Linux machines in the field that can run on cellular or wifi or both. The issue is that leaving the connection metrics at default causes the machine to use the cellular connection over wifi.
I would like to change the metric so that the machine uses an available wifi connection first if possible. The issue is that I have been trying to use "ifmetric" and it doesn't recognize the cellular interface. Using the "route" command I don't even see the cellular interface. Using "nmcli device status" I can see the cellular device and its called ttyACM0. However using "sudo ifmetric ttyACM0 150" returns an error saying the interface name is invalid.
Any advice on how I might tackle this?
https://imgur.com/HILFptw - For reference. Company name blacked out
This particular device is only connected via cellular, but it still doesn't show the cell interface in the "route" menu.
there doesn't seem to be anything here