[Pkg-utopia-maintainers] Bug#526650: network-manager: Messing up valid interface settings?

Stefan Monnier monnier at iro.umontreal.ca
Sat May 2 14:12:34 UTC 2009


Package: network-manager
Version: 0.7.1-1
Severity: normal

For a while now I've been having a problem where my wifi connection (on my
desktop machine) ends up "non functional".  I do not know how to reproduce
it and happens maybe about once a week, tho it's far from "regular"
(e.g. it happened twice yesterday).  I also do not know for a fact that
it is caused by network-manager, but I think there's a good chance it's
responsible.

Here's my machine setup:
- two ethernet interfaces, unconnected, named eth-up and eth-down.
- one wifi interface (USB dongle) configured with wpa-roam, named wlan0,
  which connects to my home router to access my DSL line.
- one pseudo "ethernet USB dongle" (really, a neo Freerunner phone
  using the g_ether module on the other end), named usb0.
- two PPTP VPN connections (ppp0 and ppp1).
- I also had a wlan0:0 alias (with static IP 192.168.168.169), which
  I just stopped using yesterday.

They're all configured in /etc/network/interfaces (appended at the end
of this email)
usb0 is configured statically to 192.168.0.200.

The problem comes when at some point the routing gets all messed up,
and the default route ends up pointing to usb0 rather than to wlan0.
It seems that when this happens, it also happens that usb0 somehow was
handed the 192.168.168.169 IP.  I believe the chunk of daemon.log below
is relevant:

Apr 29 17:46:42 localhost nm-system-settings:    SCPlugin-Ifupdown: devices added (udi: /org/freedesktop/Hal/devices/net_fa_fe_cd_0d_96_c3, iface: usb0)
Apr 29 17:46:42 localhost nm-system-settings:    Ifupdown: get unmanaged devices count: 4
Apr 29 17:46:42 localhost NetworkManager: <info>  (usb0): new Ethernet device (driver: 'cdc_ether')
Apr 29 17:46:42 localhost NetworkManager: <info>  (usb0): exported as /org/freedesktop/Hal/devices/net_fa_fe_cd_0d_96_c3
Apr 29 17:46:42 localhost avahi-daemon[3501]: Joining mDNS multicast group on interface usb0.IPv4 with address 192.168.0.200.
Apr 29 17:46:42 localhost NetworkManager: <info>  (usb0): carrier now ON (device state 1)
Apr 29 17:46:42 localhost avahi-daemon[3501]: New relevant interface usb0.IPv4 for mDNS.
Apr 29 17:46:42 localhost avahi-daemon[3501]: Registering new address record for 192.168.0.200 on usb0.IPv4.
Apr 29 17:46:43 localhost ntpdate[9542]: name server cannot be used, reason: Temporary failure in name resolution
Apr 29 17:46:44 localhost avahi-daemon[3501]: Joining mDNS multicast group on interface usb0.IPv6 with address fe80::f8fe:cdff:fe0d:96c3.
Apr 29 17:46:44 localhost avahi-daemon[3501]: New relevant interface usb0.IPv6 for mDNS.
Apr 29 17:46:44 localhost avahi-daemon[3501]: Registering new address record for fe80::f8fe:cdff:fe0d:96c3 on usb0.*.
Apr 29 17:46:47 localhost NetworkManager: <info>  (usb0): device state change: 1 -> 2
Apr 29 17:46:47 localhost NetworkManager: <info>  (usb0): preparing device.
Apr 29 17:46:47 localhost NetworkManager: <info>  (usb0): deactivating device (reason: 2).
Apr 29 17:46:47 localhost avahi-daemon[3501]: Withdrawing address record for 192.168.0.200 on usb0.
Apr 29 17:46:47 localhost avahi-daemon[3501]: Leaving mDNS multicast group on interface usb0.IPv4 with address 192.168.0.200.
Apr 29 17:46:47 localhost avahi-daemon[3501]: Interface usb0.IPv4 no longer relevant for mDNS.
Apr 29 17:46:47 localhost NetworkManager: <info>  (usb0): device state change: 2 -> 3
Apr 29 17:46:47 localhost NetworkManager: <info>  Activation (usb0) starting connection 'Ifupdown (eth-down)'
Apr 29 17:46:47 localhost NetworkManager: <info>  (usb0): device state change: 3 -> 4
Apr 29 17:46:47 localhost NetworkManager: <info>  Activation (usb0) Stage 1 of 5 (Device Prepare) scheduled...
Apr 29 17:46:47 localhost NetworkManager: <info>  Activation (usb0) Stage 1 of 5 (Device Prepare) started...
Apr 29 17:46:47 localhost NetworkManager: <info>  Activation (usb0) Stage 2 of 5 (Device Configure) scheduled...
Apr 29 17:46:47 localhost NetworkManager: <info>  Activation (usb0) Stage 1 of 5 (Device Prepare) complete.
Apr 29 17:46:47 localhost NetworkManager: <info>  Activation (usb0) Stage 2 of 5 (Device Configure) starting...
Apr 29 17:46:47 localhost NetworkManager: <info>  (usb0): device state change: 4 -> 5
Apr 29 17:46:47 localhost NetworkManager: <info>  Activation (usb0) Stage 2 of 5 (Device Configure) successful.
Apr 29 17:46:47 localhost NetworkManager: <info>  Activation (usb0) Stage 3 of 5 (IP Configure Start) scheduled.
Apr 29 17:46:47 localhost NetworkManager: <info>  Activation (usb0) Stage 2 of 5 (Device Configure) complete.
Apr 29 17:46:47 localhost NetworkManager: <info>  Activation (usb0) Stage 3 of 5 (IP Configure Start) started...
Apr 29 17:46:47 localhost NetworkManager: <info>  (usb0): device state change: 5 -> 7
Apr 29 17:46:47 localhost NetworkManager: <info>  Activation (usb0) Beginning DHCP transaction.
Apr 29 17:46:47 localhost NetworkManager: <info>  dhclient started with pid 9570
Apr 29 17:46:47 localhost NetworkManager: <info>  Activation (usb0) Stage 3 of 5 (IP Configure Start) complete.
Apr 29 17:46:47 localhost dhclient: Internet Systems Consortium DHCP Client V3.1.2
Apr 29 17:46:47 localhost dhclient: Copyright 2004-2008 Internet Systems Consortium.
Apr 29 17:46:47 localhost dhclient: All rights reserved.
Apr 29 17:46:47 localhost dhclient: For info, please visit http://www.isc.org/sw/dhcp/
Apr 29 17:46:47 localhost dhclient: 
Apr 29 17:46:47 localhost dhclient: wmaster0: unknown hardware address type 801
Apr 29 17:46:47 localhost NetworkManager: <info>  DHCP: device usb0 state changed (null) -> preinit
Apr 29 17:46:47 localhost dhclient: wmaster0: unknown hardware address type 801
Apr 29 17:46:47 localhost dhclient: Listening on LPF/usb0/fa:fe:cd:0d:96:c3
Apr 29 17:46:47 localhost dhclient: Sending on   LPF/usb0/fa:fe:cd:0d:96:c3
Apr 29 17:46:47 localhost dhclient: Sending on   Socket/fallback
Apr 29 17:46:51 localhost dhclient: DHCPDISCOVER on usb0 to 255.255.255.255 port 67 interval 3
Apr 29 17:46:54 localhost dhclient: DHCPDISCOVER on usb0 to 255.255.255.255 port 67 interval 3
Apr 29 17:46:57 localhost dhclient: DHCPDISCOVER on usb0 to 255.255.255.255 port 67 interval 4
Apr 29 17:47:01 localhost dhclient: DHCPDISCOVER on usb0 to 255.255.255.255 port 67 interval 10
Apr 29 17:47:11 localhost dhclient: DHCPDISCOVER on usb0 to 255.255.255.255 port 67 interval 12
Apr 29 17:47:23 localhost dhclient: DHCPDISCOVER on usb0 to 255.255.255.255 port 67 interval 13
Apr 29 17:47:32 localhost NetworkManager: <info>  Device 'usb0' DHCP transaction took too long (>45s), stopping it.
Apr 29 17:47:32 localhost NetworkManager: <info>  usb0: canceled DHCP transaction, dhcp client pid 9570
Apr 29 17:47:32 localhost NetworkManager: <info>  Activation (usb0) Stage 4 of 5 (IP Configure Timeout) scheduled...
Apr 29 17:47:32 localhost NetworkManager: <info>  Activation (usb0) Stage 4 of 5 (IP Configure Timeout) started...
Apr 29 17:47:32 localhost NetworkManager: <info>  (usb0): device state change: 7 -> 9
Apr 29 17:47:32 localhost NetworkManager: <info>  Marking connection 'Ifupdown (eth-down)' invalid.
Apr 29 17:47:32 localhost NetworkManager: <info>  Activation (usb0) failed.
Apr 29 17:47:32 localhost NetworkManager: <info>  Activation (usb0) Stage 4 of 5 (IP Configure Timeout) complete.
Apr 29 17:47:32 localhost NetworkManager: <info>  (usb0): device state change: 9 -> 3
Apr 29 17:47:32 localhost NetworkManager: <info>  (usb0): deactivating device (reason: 0).
Apr 29 17:47:32 localhost NetworkManager: <info>  Activation (usb0) starting connection 'Ifupdown (wlan0:0)'
Apr 29 17:47:32 localhost NetworkManager: <info>  (usb0): device state change: 3 -> 4
Apr 29 17:47:32 localhost NetworkManager: <info>  Activation (usb0) Stage 1 of 5 (Device Prepare) scheduled...
Apr 29 17:47:32 localhost NetworkManager: <info>  Activation (usb0) Stage 1 of 5 (Device Prepare) started...
Apr 29 17:47:32 localhost NetworkManager: <info>  Activation (usb0) Stage 2 of 5 (Device Configure) scheduled...
Apr 29 17:47:32 localhost NetworkManager: <info>  Activation (usb0) Stage 1 of 5 (Device Prepare) complete.
Apr 29 17:47:32 localhost NetworkManager: <info>  Activation (usb0) Stage 2 of 5 (Device Configure) starting...
Apr 29 17:47:32 localhost NetworkManager: <info>  (usb0): device state change: 4 -> 5
Apr 29 17:47:32 localhost NetworkManager: <info>  Activation (usb0) Stage 2 of 5 (Device Configure) successful.
Apr 29 17:47:32 localhost NetworkManager: <info>  Activation (usb0) Stage 3 of 5 (IP Configure Start) scheduled.
Apr 29 17:47:32 localhost NetworkManager: <info>  Activation (usb0) Stage 2 of 5 (Device Configure) complete.
Apr 29 17:47:32 localhost NetworkManager: <info>  Activation (usb0) Stage 3 of 5 (IP Configure Start) started...
Apr 29 17:47:32 localhost NetworkManager: <info>  (usb0): device state change: 5 -> 7
Apr 29 17:47:32 localhost NetworkManager: <info>  Activation (usb0) Stage 4 of 5 (IP Configure Get) scheduled...
Apr 29 17:47:32 localhost NetworkManager: <info>  Activation (usb0) Stage 3 of 5 (IP Configure Start) complete.
Apr 29 17:47:32 localhost NetworkManager: <info>  Activation (usb0) Stage 4 of 5 (IP Configure Get) started...
Apr 29 17:47:32 localhost NetworkManager: <info>  Activation (usb0) Stage 5 of 5 (IP Configure Commit) scheduled...
Apr 29 17:47:32 localhost NetworkManager: <info>  Activation (usb0) Stage 4 of 5 (IP Configure Get) complete.
Apr 29 17:47:32 localhost NetworkManager: <info>  Activation (usb0) Stage 5 of 5 (IP Configure Commit) started...
Apr 29 17:47:32 localhost avahi-daemon[3501]: Joining mDNS multicast group on interface usb0.IPv4 with address 192.168.168.169.
Apr 29 17:47:32 localhost avahi-daemon[3501]: New relevant interface usb0.IPv4 for mDNS.
Apr 29 17:47:32 localhost avahi-daemon[3501]: Registering new address record for 192.168.168.169 on usb0.IPv4.
Apr 29 17:47:33 localhost NetworkManager: <info>  (usb0): removing resolv.conf from /sbin/resolvconf
Apr 29 17:47:33 localhost NetworkManager: <info>  (usb0): device state change: 7 -> 8
Apr 29 17:47:33 localhost NetworkManager: <info>  (usb0): removing resolv.conf from /sbin/resolvconf
Apr 29 17:47:33 localhost NetworkManager: <info>  Policy set 'Ifupdown (wlan0:0)' (usb0) as default for routing and DNS.
Apr 29 17:47:33 localhost NetworkManager: <info>  Activation (usb0) successful, device activated.
Apr 29 17:47:33 localhost NetworkManager: <info>  Activation (usb0) Stage 5 of 5 (IP Configure Commit) complete.


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'oldstable'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686-bigmem (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.12-1                    simple interprocess messaging syst
ii  dhcp3-client 3.1.2-1                     DHCP client
ii  hal          0.5.12~git20090406.46dc48-2 Hardware Abstraction Layer
ii  ifupdown     0.6.8+nmu1                  high level tools to configure netw
ii  libc6        2.9-9                       GNU C Library: Shared libraries
ii  libdbus-1-3  1.2.12-1                    simple interprocess messaging syst
ii  libdbus-glib 0.80-3                      simple interprocess messaging syst
ii  libgcrypt11  1.4.4-2                     LGPL Crypto library - runtime libr
ii  libglib2.0-0 2.20.0-2                    The GLib library of C routines
ii  libgnutls26  2.6.4-2                     the GNU TLS library - runtime libr
ii  libgpg-error 1.6-1                       library for common error values an
ii  libhal1      0.5.12~git20090406.46dc48-2 Hardware Abstraction Layer - share
ii  libnl1       1.1-5                       library for dealing with netlink s
ii  libnm-glib0  0.7.1-1                     network management framework (GLib
ii  libnm-util1  0.7.1-1                     network management framework (shar
ii  libpolkit-db 0.9-3                       library for accessing PolicyKit vi
ii  libpolkit2   0.9-3                       library for accessing PolicyKit
ii  libtasn1-3   1.8-1                       Manage ASN.1 structures (runtime)
ii  libuuid1     1.41.3-1                    universally unique id library
ii  lsb-base     3.2-22                      Linux Standard Base 3.2 init scrip
ii  wpasupplican 0.6.9-2                     client support for WPA and WPA2 (I
ii  zlib1g       1:1.2.3.3.dfsg-13           compression library - runtime

Versions of packages network-manager recommends:
pn  dnsmasq-base               <none>        (no description available)
ii  iptables                   1.4.3.2-2     administration tools for packet fi
ii  network-manager-gnome      0.7.1-1       network management framework (GNOM
ii  policykit                  0.9-3         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

/etc/network/interfaces:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

iface eth-down inet dhcp
iface eth-up inet dhcp

allow-hotplug wlan0
iface wlan0 inet manual
        # Make "ifup" fail if the interface doesn't exist.
        pre-up ifconfig wlan0 >/dev/null
        # Use --force because the pre-down script is actually often not run.
        #post-up ifup wlan0:0 --force
        #pre-down ifdown wlan0:0
	wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
# Used by wpa-roam.
iface default inet dhcp
        # Use --force because the pre-down script is actually often not run.
        #post-up if [ "$IFACE" = "wlan0" ]; then ifup "$IFACE":0 --force; fi
        #pre-down ifdown "$IFACE":0
        

# For wl700ge-b43
#iface wlan0:0 inet static
#        address 192.168.168.169
#        netmask 255.255.255.0
# For wl700ge-rescue
iface wlan0:1 inet static
        address 192.168.192.169
        netmask 255.255.255.0


# The Neo FreeRunner appears as a USB network adapter.
allow-hotplug usb0
iface usb0 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 &
        #post-up su - monnier -c 'ssh neo resolvconf -a usb0' </etc/resolv.conf &
        down iptables -D POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24 &

auto UdeM
iface UdeM inet ppp
        provider UdeM

auto McGill
iface McGill inet ppp
        provider McGill





More information about the Pkg-utopia-maintainers mailing list