Red Hat Bugzilla – Bug 452922
Update metrics to ensure routing is correct with multiple interfaces
Last modified: 2009-02-14 15:29:18 EST
Description of problem:
When I plug in an ethernet cable to my thinkpad z61 network manager dhcps
correctly, but does not drop the wireless connection and apps continue to use
it. I have to disable wireless to use the cable I just plugged in.
Version-Release number of selected component (if applicable):
Happens every time
Steps to Reproduce:
1. Connect to wlan
2. Plug in ethernet cable
3. Watch icon change to indicate wired
Network uses wlan0
Network uses eth0
Wireless is Intel PRO/Wireless 3945ABG
Ethernet is Broadcom BCM5752M
Created attachment 310298 [details]
grep NetworkManager /var/log/messages
This also happens on my Thinkpad T41, atheros AR5212 wlan and Intel 82540EP ethernet
This is by design and one of the major features of 0.7; NetworkManager keeps
available devices up so that your apps don't break when you switch. It changes
the default route so that new connections will use the new default device.
What's the output of '/sbin/route -n' in your situation?
Ok, that makes sense (and is rather nifty), but it sounds like the new
connections aren't defaulting properly.
[aidan@thoughtful ~]$ /sbin/route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
(this would be less of a problem without #453278)
Yeah, we probably need to update metrics to ensure that eth0 is really being used.
This functionality got into NM on 2008-09-30. Should be long-since fixed.