[Pkg-utopia-maintainers] Bug#693512: network-manager: Network manager does not remove default routes
Miguel Angel
mianrojas at gmail.com
Sat Nov 17 11:28:00 UTC 2012
Package: network-manager
Version: 0.9.4.0-6
Severity: normal
I have 2 connections in my computer:
eth0 : physical connectivity
wlan0 : wireless connectivity
I used to connect to my network through a physical connection but it is not in place anymore, so I decided to connect through wifi (wlan0).
Network-manager is not removing the default routing I had before and every time I would like to connect I have to manually remove this route.
As far as I understand from the network-manager, this should be automatically done by network-manager (removing and adding default new routes depending on current network connection)
Here you have the example:
/* System has booted up*/
$ netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0 0 eth0
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
/* I connect to my wifi connection through network manager in KDE */
# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0 0 wlan0
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
/* As you can see, eth0 configuration routing is still there!!)
# route del -net 192.168.2.0 netmask 255.255.255.0 eth0
/* After deleting the default route, it is working again)
# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0 0 wlan0
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
/* Traffic is routed properly */
I have also modified NetworkManager configuration file to be able to manage the eth0 connection (according to http://wiki.debian.org/NetworkManager) with no success:
$ cat /etc/NetworkManager/NetworkManager.conf
[main]
plugins=ifupdown,keyfile
[ifupdown]
managed=true
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages network-manager depends on:
ii adduser 3.113+nmu3
ii dbus 1.6.8-1
ii dpkg 1.16.9
ii isc-dhcp-client 4.2.4-3
ii libc6 2.13-36
ii libdbus-1-3 1.6.8-1
ii libdbus-glib-1-2 0.100-1
ii libgcrypt11 1.5.0-3
ii libglib2.0-0 2.33.12+really2.32.4-3
ii libgnutls26 2.12.20-2
ii libgudev-1.0-0 175-7.1
ii libnl-3-200 3.2.7-4
ii libnl-genl-3-200 3.2.7-4
ii libnl-route-3-200 3.2.7-4
ii libnm-glib4 0.9.4.0-6
ii libnm-util2 0.9.4.0-6
ii libpolkit-gobject-1-0 0.105-1
ii libuuid1 2.20.1-5.2
ii lsb-base 4.1+Debian8
ii udev 175-7.1
ii wpasupplicant 1.0-3+b2
Versions of packages network-manager recommends:
ii crda 1.1.2-1
ii dnsmasq-base 2.63-4
ii iptables 1.4.16.3-4
ii modemmanager 0.5.2.0-2
ii policykit-1 0.105-1
ii ppp 2.4.5-5.1+b1
Versions of packages network-manager suggests:
pn avahi-autoipd <none>
-- Configuration Files:
/etc/NetworkManager/NetworkManager.conf changed:
[main]
plugins=ifupdown,keyfile
[ifupdown]
managed=true
-- no debconf information
More information about the Pkg-utopia-maintainers
mailing list