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 589040 - drops wireless default route when plugging in network cable
drops wireless default route when plugging in network cable
Status: RESOLVED NOTABUG
Product: NetworkManager
Classification: Platform
Component: general
0.7.x
Other All
: Normal normal
: ---
Assigned To: Dan Williams
Dan Williams
Depends on:
Blocks:
 
 
Reported: 2009-07-19 18:10 UTC by Paul Wise
Modified: 2010-01-04 21:26 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Paul Wise 2009-07-19 18:10:31 UTC
Please describe the problem:
I have an active WiFi connection. I plug in an Ethernet cable or my OpenMoko phone (that does Ethernet-over-USB via the g_ether Linux kernel USB gadget). NetworkManager unhelpfully switches the default route and DNS to the Ethernet cable. I rush to change the default route back to something sane from the command-line before my connections time out and I get kicked off IRC and MSN/etc.

In the syslog I see messages like this:

Jul 19 19:29:31 somehost NetworkManager: <info>  Policy set 'Ifupdown (usb0)' (usb0) as default for routing and DNS.

But I have no idea where to set or modify this policy.


Steps to reproduce:
1. Start WiFi connection to Internet
2. Start IRC/etc
3. Plugin Ethernet cable
4. Sigh


Actual results:
I sigh

Expected results:
I'd be able to continue working, or networkmanager would put up a low-priority notification that a new network is connected, available and to click the button on the notification if you want to change the default route and DNS etc. 

Does this happen every time?
Yes

Other information:
I'm using NM 0.7.1-1 from Debian squeeze/sid.
Comment 1 Dan Williams 2010-01-04 21:26:11 UTC
If you click the "Only use this connection fro resources on it's network" checkbox in the Routes... dialog of the IPv4 tab in the connection editor for that connection, NM will not switch the default route to that device.  You can also lock the connection to the OpenMoko device's MAC address so that the connection does not affect other wired devices.