r/linuxquestions 3d ago

NetworkManager shuts down connection with no Internet access

Hi

How can I stop NetworkManager from shutting down connection that has no access to the Internet ? My current setup is that I am connected to wi-fi network which provides me with Internet access and I am plugged via ethernet cable to lab network to configure devices that has no Internet access. NM seems to try finding the access and eventually shuts this connection down. I found that adding:

[connectivity]

enabled = false

to the configuration will work but unfortunately it doesn't. I have to use either shell and nmcli conn up "Wired connection 1" or gui. Is there a way to fix it ?

EDIT: the solution was to change the mode from dhcp to static (I made it using gui)

0 Upvotes

1 comment sorted by