In data mercoledì 11 dicembre 2024 12:33:22 Ora standard dell’Europa centrale, Andrei Borzenkov ha scritto:
Run a service that monitors whatever condition you define as "failure" and changes route metric accordingly. Linux will use the route with a "better" metric.
It does not fail. It drops in speed to be substantially frozen. Imagine I have a dlan in my house. It is on two floors. On the upper floor the quality of electrical wiring is better than in the lower floor (I have not an idea why, but a damage to the heating with moist walls years ago may have causes some oxidation). The quality within the lower floor (were I am) is also not homogeneous. The dlan adapter on the line that is hit by disturbances is another than the line that the WLAN router uses to give service. Both have(!) to service via dlan to reach the router in the first floor because the house is of concrete and the wlan signal from above does not suffice, not even using a repeater. So If the Ethernet "fails" to load, that is takes a lifetime to load pages, the WLAN is still instantaneously, because on another electrical line. But here the situation you describe does not fit because networkmanager will not preceive this as a failure (the line still stands has IP but is really slow), so in my experience it will not use the faster wlan available. I cannot confirm what you say. if I start Ethernet first during boot and then WLAN the first will get the higher metric and the second will get the lower. And they will keep them until I manually disconnect them (this is what I have checked with "route -n". The opposite is with first wlan and then ethernet. I am connecting with a wire guard vpn to the net, that does not make the connect faster, but when the Ethernet has a good day it works well, when the WLAN works also. Even if both are connected. Now why I am actually still using Ethernet over dlan if it is disturbed? Because I have a bridge in order to give internet to a virtual machine I use. And I found out I cannot get this to work with wlan apparently. (I did find somewhere - I think on "serverfault", the reason why this is so, but I admit in the meanwhile I forgot again. If you think this is wrong information you can "save my soul" by telling me how to make (without security loss on the host machine) to make a bridge for virtual machine work on wlan. What service could I run that does the thing you are describing above?