[Pkg-utopia-maintainers] Bug#548908: network-manager overrides my default route with a non-working one
Stefan Monnier
monnier at IRO.UMontreal.CA
Tue Sep 29 15:31:57 UTC 2009
Package: network-manager
Version: 0.7.1-2
Severity: normal
My system is setup as follows:
- an ethernet interface configured via DHCP connects up to the internet.
Udev is setup to name this interface `eth-down'.
This interface is taken up/down by ifplugd.
- a USB plug to which I sometimes connect a device through an ethernet
adapter. Udev is setup to name this interface `eth-usb'.
this interface is taken up/down via "allow-hotplug".
All the networking is setup via /etc/network/interfaces (shown below).
network-manager is installed and running (because of gnome) but has
never been touched (i.e. default config) and no user is running
nm-applet.
As long as I don't plug in my eth-usb device, all works fine.
As long as network-manager is not running, everything works fine.
But starting from the following routing state:
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
132.204.24.0 * 255.255.252.0 U 0 0 0 eth-down
default sud-ouest.iro.u 0.0.0.0 UG 0 0 0 eth-down
#
if network-manager is running and I plug my eth-usb device, I the device gets
configured correctly by ifupdown's hotplug support, but the default route
gets messed up:
# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 1 0 0 eth-usb
132.204.24.0 * 255.255.252.0 U 0 0 0 eth-down
default 192.168.0.200 0.0.0.0 UG 0 0 0 eth-usb
#
Stefan
##### /etc/network/interfaces #############################################
auto lo
iface lo inet loopback
iface eth-down inet dhcp
allow-hotplug eth-usb
iface eth-usb inet static
address 192.168.0.200
netmask 255.255.255.0
up iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24 &
up echo 1 > /proc/sys/net/ipv4/ip_forward &
up iptables -P FORWARD ACCEPT &
down iptables -D POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24 &
###########################################################################
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.30-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_CH.UTF-8, LC_CTYPE=fr_CH.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages network-manager depends on:
ii adduser 3.110 add and remove users and groups
ii dbus 1.2.16-2 simple interprocess messaging syst
ii dhcp3-client 3.1.2p1-1 DHCP client
ii hal 0.5.13-3 Hardware Abstraction Layer
ii ifupdown 0.6.9 high level tools to configure netw
ii libc6 2.9-25 GNU C Library: Shared libraries
ii libdbus-1-3 1.2.16-2 simple interprocess messaging syst
ii libdbus-glib-1-2 0.82-1 simple interprocess messaging syst
ii libgcrypt11 1.4.4-4 LGPL Crypto library - runtime libr
ii libglib2.0-0 2.22.0-1 The GLib library of C routines
ii libgnutls26 2.8.3-3 the GNU TLS library - runtime libr
ii libgpg-error0 1.6-1 library for common error values an
ii libhal1 0.5.13-3 Hardware Abstraction Layer - share
ii libnl1 1.1-5 library for dealing with netlink s
ii libnm-glib0 0.7.1-2 network management framework (GLib
ii libnm-util1 0.7.1-2 network management framework (shar
ii libpolkit-dbus2 0.9-4 library for accessing PolicyKit vi
ii libpolkit2 0.9-4 library for accessing PolicyKit
ii libtasn1-3 2.3-1 Manage ASN.1 structures (runtime)
ii libudev0 0.141-2 libudev shared library
ii libuuid1 2.16.1-3 Universally Unique ID library
ii lsb-base 3.2-23 Linux Standard Base 3.2 init scrip
ii wpasupplicant 0.6.9-3 client support for WPA and WPA2 (I
ii zlib1g 1:1.2.3.3.dfsg-15 compression library - runtime
Versions of packages network-manager recommends:
pn dnsmasq-base <none> (no description available)
ii iptables 1.4.4-2 administration tools for packet fi
ii network-manager-gnome 0.7.1-1 network management framework (GNOM
ii policykit 0.9-4 framework for managing administrat
ii ppp 2.4.4rel-10.1 Point-to-Point Protocol (PPP) - da
Versions of packages network-manager suggests:
pn avahi-autoipd <none> (no description available)
-- no debconf information
More information about the Pkg-utopia-maintainers
mailing list