Score:0

NetworkManager keeps switching default route between wifi and ethernet

cw flag

I have two network cards, wifi and ethernet. Both are simultaneously connected to two separate networks. Both networks give me a default gateway.

Now, I want my specific ethernet Networkmanager profile to be prioritized over the wifi-profile all the time. But it keeps switching who is prioritized, causing my ssh connections to die. I can confirm this in ip route and see that suddenly the ethernet profile gateway has higher metric.

I do not see a pattern when this is happening, but it seem to happen regardless of what physical and wifi network I have ethernet connected through. There are no interesting logs in dmesg.

I am using a thunderbolt dock that I am connected through

From NetworkManager logs:

jul 14 11:41:58 ubuntu-2004 NetworkManager[1022]: <info>  [1626255718.9975] policy: set 'ethernet-profile' (eth0) as default for IPv4 routing and DNS
jul 14 11:42:11 ubuntu-2004 NetworkManager[1022]: <info>  [1626255731.7590] policy: set 'wifi-ssid' (wlan0) as default for IPv4 routing and DNS
jul 14 11:42:38 ubuntu-2004 NetworkManager[1022]: <info>  [1626255758.0353] policy: set 'ethernet-profile' (eth0) as default for IPv4 routing and DNS
jul 14 11:43:04 ubuntu-2004 NetworkManager[1022]: <info>  [1626255784.7638] policy: set 'wifi-ssid' (wlan0) as default for IPv4 routing and DNS
jul 14 11:43:30 ubuntu-2004 NetworkManager[1022]: <info>  [1626255810.0385] policy: set 'ethernet-profile' (eth0) as default for IPv4 routing and DNS
jul 14 11:44:03 ubuntu-2004 NetworkManager[1022]: <info>  [1626255843.7814] policy: set 'wifi-ssid' (wlan0) as default for IPv4 routing and DNS
jul 14 11:44:17 ubuntu-2004 NetworkManager[1022]: <info>  [1626255857.3367] policy: set 'ethernet-profile' (eth0) as default for IPv4 routing and DNS
jul 14 13:24:30 ubuntu-2004 NetworkManager[1022]: <info>  [1626261870.7424] policy: set 'wifi-ssid' (wlan0) as default for IPv4 routing and DNS
jul 14 13:24:55 ubuntu-2004 NetworkManager[1022]: <info>  [1626261895.1745] policy: set 'ethernet-profile' (eth0) as default for IPv4 routing and DNS
jul 14 13:25:05 ubuntu-2004 NetworkManager[1022]: <info>  [1626261905.7472] policy: set 'wifi-ssid' (wlan0) as default for IPv4 routing and DNS
jul 14 13:25:09 ubuntu-2004 NetworkManager[1022]: <info>  [1626261909.5220] policy: set 'ethernet-profile' (eth0) as default for IPv4 routing and DNS
jul 14 13:25:26 ubuntu-2004 NetworkManager[1022]: <info>  [1626261926.7462] policy: set 'wifi-ssid' (wlan0) as default for IPv4 routing and DNS
jul 14 13:25:27 ubuntu-2004 NetworkManager[1022]: <info>  [1626261927.0758] policy: set 'ethernet-profile' (eth0) as default for IPv4 routing and DNS
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.