Bug 486879

Summary: Can't disconnect wlan0 when using both wlan0/eth0
Product: [Fedora] Fedora Reporter: Stefan Neufeind <redhat>
Component: NetworkManagerAssignee: Dan Williams <dcbw>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 10CC: dcbw
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-02-28 15:06:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Stefan Neufeind 2009-02-22 22:02:05 UTC
I was connected with wlan0, plugged in a connection at eth0 and then wanted to use NetworkManager (with knetworkmanager as "frontend") to "Deactive connection wlan0". But that didn't result in wlan0 staying disconnected but just made it reconfigure itself. Still both wlan0/eth0 were connected and it seems wlan0 was connected. No way (instead of maybe rfkill) to disconnect wlan0 to instead use eth0?

Comment 1 Dan Williams 2009-02-28 15:06:18 UTC
You can also use the "Disable wireless" function of knetworkmanager, if it has one.  At least the GNOME applet has one; if knetworkmanager doesn't then that's probably a bug in knetworkmanager.

But, that said, there is no problem with both eth0 and wlan0 being active at the same time; the best interface available will be used.  NM is designed to keep interfaces active as they are available (ie, cable plugged in, AP in range, etc).  This provides very quick switching between connections when you unplug or replug the cable, for example.

Comment 2 Stefan Neufeind 2009-03-01 23:22:04 UTC
I was a bit astonished to find NetworkManager (re)connecting right after I manually disconnected that selected network. Background might have been that the autoconnect-feature was turned on.

"Disable wireless" works, yes.

And about eth0/wlan0 being active at the same time: You are right that NM has default-routes over both interfaces with wlan0 having a bit higher metric. That's excellent, for the case you described. And according to the routing-table it correctly prefers the ethernet-connection. Only strange thing was that the kde-applet displays the wireless-status though the wired connection is the one used at that moment (misleading for me to believe that wlan0 was prefered). But on second thought it makes perfect sense to display wireless strength instead of a static wired-connection icon (with no more information-detail at all).

Thank you for pointing out those aspects.