GNOME Bugzilla – Bug 589040
drops wireless default route when plugging in network cable
Last modified: 2010-01-04 21:26:11 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.
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.