Wifi or data mobile

When I’m in a Wifi zone (for example in my home) and have both, Wifi and data mobile connected, which one is used? The routing says both:

purism@pureos:~$ netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface         UG        0 0          0 wlan0         UG        0 0          0 wwan0 U         0 0          0 wwan0   U         0 0          0 wlan0

The status line on top of the display says 4G and has the Wifi active symbol.

On my Ubuntu mobile phone there is only one place for Wifi ./. data mobile, i.e. if Wifi is connected no data mobile is shown and it’s clear what is used.

With the L5 I use the browser and go to http://myip.nl/ and can see from my own IP addr which connection is used.

When both WiFi and mobile data are enabled and established a connection, then data will be routed over WiFi, it is decided by metrics, ip r will show the metric assigned to each route.


In some respects I prefer the way the Librem 5 does it i.e. I get to see the status of the mobile connection even when WiFi is available. (For example, if I was playing around with the cellular modem HKS and I switched it off and forgot to switch it back on then I am missing lots of calls but there is no status indication if it only shows the connection that is being used.)

(For additional example, if someone is messing around with VoLTE then it would be helpful to see whether the mobile connection drops from 4G to 3G, even if WiFi is available.)

Perhaps when you touch the top line and get slightly more status info, it could make it crystal clear as to which is used.

However “which is used” may not be as simple as you would hope if you have defined additional routes. At best it could tell you, for the scenario that there are two default gateways, which one has higher priority (lower metric i.e. lower cost). But if you have defined additional routes, it might use a lower priority gateway anyway.