[Pkg-utopia-maintainers] Bug#617691: network-manager: ifupdown-managed: chooses interface without default gateway as default route

Marcel Moreaux marcelm at qvdr.net
Thu Mar 10 16:38:58 UTC 2011


Package: network-manager
Version: 0.8.1-6
Severity: normal

On my system, I have two interfaces configured in /e/n/i, one with a default
gateway, and one without a default gateway. Network-manager makes up a non-
existent default gateway for the interface with no gateway, and uses that as
the default route.



/etc/network/interfaces:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address 192.168.2.99
        netmask 255.255.255.0
        gateway 192.168.2.1

auto eth1
iface eth1 inet static
        address 192.168.23.1
        netmask 255.255.255.0
        pre-up /usr/local/sbin/firewall.rules



ifupdown does it right:
# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
# ifup -a
# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.23.0    0.0.0.0         255.255.255.0   U     0      0        0 eth1
192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         192.168.2.1     0.0.0.0         UG    0      0        0 eth0
# ifdown -a
# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
#



Network-manager does this:
# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
# /etc/init.d/network-manager start
Starting network connection manager: NetworkManager.
# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.23.0    0.0.0.0         255.255.255.0   U     1      0        0 eth1
192.168.2.0     0.0.0.0         255.255.255.0   U     1      0        0 eth0
0.0.0.0         192.168.23.1    0.0.0.0         UG    0      0        0 eth1

Which is interesting and wrong ;)



/var/log/daemon.log says (among other things):
Mar 10 16:53:38 radon NetworkManager[29457]: <info> Policy set 'Ifupdown
(eth1)' (eth1) as default for IPv4 routing and DNS.



Cheers,
Marcel Moreaux



-- System Information:
Debian Release: 6.0
  APT prefers squeeze-updates
  APT policy: (500, 'squeeze-updates'), (500, 'stable'), (300, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages network-manager depends on:
ii  adduser             3.112+nmu2           add and remove users and groups
ii  dbus                1.2.24-4             simple interprocess messaging syst
ii  isc-dhcp-client     4.1.1-P1-15+squeeze1 ISC DHCP client
ii  libc6               2.11.2-10            Embedded GNU C Library: Shared lib
ii  libdbus-1-3         1.2.24-4             simple interprocess messaging syst
ii  libdbus-glib-1-2    0.88-2.1             simple interprocess messaging syst
ii  libgcrypt11         1.4.5-2              LGPL Crypto library - runtime libr
ii  libglib2.0-0        2.24.2-1             The GLib library of C routines
ii  libgnutls26         2.8.6-1              the GNU TLS library - runtime libr
ii  libgudev-1.0-0      164-3                GObject-based wrapper library for
ii  libnl1              1.1-6                library for dealing with netlink s
ii  libnm-glib2         0.8.1-6              network management framework (GLib
ii  libnm-util1         0.8.1-6              network management framework (shar
ii  libpolkit-gobject-1 0.96-4               PolicyKit Authorization API
ii  libuuid1            2.17.2-9             Universally Unique ID library
ii  lsb-base            3.2-23.2squeeze1     Linux Standard Base 3.2 init scrip
ii  udev                164-3                /dev/ and hotplug management daemo
ii  wpasupplicant       0.6.10-2.1           client support for WPA and WPA2 (I

Versions of packages network-manager recommends:
ii  dnsmasq-base                  2.55-2+b1  A small caching DNS proxy and DHCP
ii  iptables                      1.4.8-3    administration tools for packet fi
pn  modemmanager                  <none>     (no description available)
ii  policykit-1                   0.96-4     framework for managing administrat
ii  ppp                           2.4.5-4    Point-to-Point Protocol (PPP) - da

Versions of packages network-manager suggests:
pn  avahi-autoipd                 <none>     (no description available)

-- Configuration Files:
/etc/NetworkManager/NetworkManager.conf changed:
[main]
plugins=ifupdown,keyfile
[ifupdown]
managed=true
[logging]
level=debug



-- no debconf information





More information about the Pkg-utopia-maintainers mailing list