After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 743599 - Network interface keeps getting disabled and reenabled
Network interface keeps getting disabled and reenabled
Status: RESOLVED OBSOLETE
Product: NetworkManager
Classification: Platform
Component: IP and DNS config
1.0.x
Other Linux
: Normal major
: ---
Assigned To: NetworkManager maintainer(s)
NetworkManager maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2015-01-27 19:18 UTC by Max Bruckner
Modified: 2020-11-12 14:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Log files of it happening (54.51 KB, text/plain)
2015-01-27 19:18 UTC, Max Bruckner
Details
Package capture with wireshark. (28.73 KB, application/vnd.tcpdump.pcap)
2015-01-27 19:19 UTC, Max Bruckner
Details
The NetworkManager.conf used by Archlinux (180 bytes, text/plain)
2015-01-27 19:21 UTC, Max Bruckner
Details

Description Max Bruckner 2015-01-27 19:18:08 UTC
Created attachment 295581 [details]
Log files of it happening

When connecting to my home network it keeps connecting and disconnecting in a loop. This happens on 3 different computers using Archlinux x86_64 with NetworkManager version 1.0.0, both via wifi and via cable.

The problem only occurs with one of my routers, a Netgear WNDR3700v2 with OpenWRT 14.07 Barrier Breaker. Not with a TP-Link WR740N v4.6 with OpenWRT 14.07 Barrier Breaker, also not with my Fritz!Box 7320 and the Network of my University using WPA-Enterprise.

Comments in this bug report: https://bugzilla.gnome.org/show_bug.cgi?id=743472 suggest that my problem may be related to the use of dhcpcd, but I haven't investigated that any further.

The problem first occured after upgrading from 0.9.10.0 to 1.0.0 and downgrading provides a temporary fix. When the problem first occured I was using network-manager-applet 1.0.0 with GNOME 3.14, but I can reproduce this problem even without nm-applet.

In the Attachments you can find the NetworkManager logs of it happening. And I did simultaneously capture all the packages on the interface with wireshark (so the logs and the capture should be in sync).
Comment 1 Max Bruckner 2015-01-27 19:19:21 UTC
Created attachment 295582 [details]
Package capture with wireshark.
Comment 2 Max Bruckner 2015-01-27 19:21:26 UTC
Created attachment 295583 [details]
The NetworkManager.conf used by Archlinux
Comment 3 Dan Winship 2015-01-27 19:47:31 UTC
Yes, it's because of dhcpcd (or rather, NM's use of dhcpcd), and switching to dhclient will fix things (though we need to do something about the bug with dhcpcd anyway).
Comment 4 Max Bruckner 2015-01-27 23:52:44 UTC
I didn't know that dhcpcd is just a fallback. So simply installing dhclient "fixes" the problem ( this seems to be obvious to you, but it wasn't for me ).
Comment 5 Dan Winship 2015-01-28 11:16:29 UTC
(It was only obvious to me because, as you mentioned, the problem was already debugged in bug 743472.)

dhcpcd isn't supposed to be "just a fallback", but none of the developers use it, so it tends to not get tested well, and random bugs like this creep in.

The main argument for using dhcpcd rather than dhclient is that it's much smaller, but the new internal dhcp client in NM 1.0 should be even smaller, so once that's fully functional, we should probably kill the dhcpcd backend.
Comment 6 Pavel Simerda 2015-01-28 11:43:10 UTC
(In reply to comment #5)
> so once that's fully functional, we should probably kill the dhcpcd backend.

That would be great.
Comment 7 Dan Williams 2015-01-29 19:14:17 UTC
Max, also, make sure that there is no "master" dhcpcd process, since that prevents the NM-spawned dhcpcd from returning DHCP information back to NM.

NM spawns dhcpcd by independently, so if there is a system dhcpcd service enabled, try disabling that service.
Comment 8 Dan Williams 2015-01-29 19:15:27 UTC
Another approach to this is to get upstream dhcpcd to add a "--no-master" argument that NM would use, which prevents the pass-off-to-master behavior.  There is currently no option to do that, if a master process is runnign then dhcpcd will *always* hand the request off.
Comment 9 Michał Górny 2016-02-15 21:28:31 UTC
This looks the same as our problem [1] which caused due to some mishandling in IPv6 configuration via dhcpcd backend. If it's that, another workaround is to set IPv6 to non-DHCP option (e.g. link-local only).

[1]:https://bugs.gentoo.org/show_bug.cgi?id=563938
Comment 10 Joakim Tjernlund 2016-09-11 15:25:37 UTC
(In reply to Michał Górny from comment #9)
> This looks the same as our problem [1] which caused due to some mishandling
> in IPv6 configuration via dhcpcd backend. If it's that, another workaround
> is to set IPv6 to non-DHCP option (e.g. link-local only).
> 
> [1]:https://bugs.gentoo.org/show_bug.cgi?id=563938

I believe the latest dhcpcd(6.11.3) has fixed the IPV6 master problem but
the site is down ATM so I cannot get at the relese notes
Comment 11 André Klapper 2020-11-12 14:29:37 UTC
bugzilla.gnome.org is being shut down in favor of a GitLab instance. 
We are closing all old bug reports and feature requests in GNOME Bugzilla which have not seen updates for a long time.

If you still use NetworkManager and if you still see this bug / want this feature in a recent and supported version of NetworkManager, then please feel free to report it at https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/

Thank you for creating this report and we are sorry it could not be implemented (workforce and time is unfortunately limited).