[Pkg-utopia-maintainers] Bug#781142: network-manager: sets same metric on routes for eth0 and wlan0

brian m. carlson sandals at crustytoothpaste.net
Wed Mar 25 02:24:29 UTC 2015


Package: network-manager
Version: 1.0.0-2
Severity: normal

In order to preserve SSH sessions when moving from wired to wireless, I
have the same IP address set on both interfaces.  (I don't believe this
affects this bug; however, I thought I'd mention it.)  However, my
wireless access can be significantly less reliable than my wired access,
so I want to prefer wired when possible.

For the default IPv4 route (0.0.0.0/0), this works out fine, as the
metric for eth0 is lower than for wlan0.  However, for the local
network, network-manager sets the same metric for eth0 and wlan0, which
results in traffic going over wlan0.  This causes notable dropouts when
the wireless reconnects, which it does very frequently.

From my home machine, although the behavior is identical with the sid
version on my work machine:

  vauxhall ok % route -n
  Kernel IP routing table
  Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
  0.0.0.0         172.16.0.1      0.0.0.0         UG    100    0        0 eth0
  0.0.0.0         172.16.0.1      0.0.0.0         UG    600    0        0 wlan0
  172.16.0.0      0.0.0.0         255.255.0.0     U     0      0        0 eth0
  172.16.0.0      0.0.0.0         255.255.0.0     U     0      0        0 wlan0
  172.16.0.0      0.0.0.0         255.255.0.0     U     100    0        0 eth0

In the sid version, I don't see the second eth0 entry for 172.16.0.0,
only the two identical ones with metric 0.

I expect that eth0 should have a lower metric than wlan0, as
network-manager's (correct) presumption is that wired is better than
wireless.

-- System Information:
Debian Release: 8.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.19.0-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages network-manager depends on:
ii  adduser                3.113+nmu3
ii  dbus                   1.8.16-1
ii  init-system-helpers    1.22
ii  isc-dhcp-client        4.3.1-6
ii  libbluetooth3          5.23-2+b1
ii  libc6                  2.19-17
ii  libdbus-1-3            1.8.16-1
ii  libdbus-glib-1-2       0.102-1
ii  libgcrypt20            1.6.3-2
ii  libglib2.0-0           2.42.1-1
ii  libgnutls-deb0-28      3.3.8-6
ii  libgudev-1.0-0         215-12
ii  libmm-glib0            1.4.0-1
ii  libndp0                1.4-2
ii  libnewt0.52            0.52.17-1+b1
ii  libnl-3-200            3.2.24-2
ii  libnl-genl-3-200       3.2.24-2
ii  libnl-route-3-200      3.2.24-2
ii  libnm0                 1.0.0-2
ii  libpam-systemd         215-12
ii  libpolkit-agent-1-0    0.105-8
ii  libpolkit-gobject-1-0  0.105-8
ii  libreadline6           6.3-8+b3
ii  libsoup2.4-1           2.48.0-1
ii  libsystemd0            215-12
ii  libteamdctl0           1.12-1
ii  libuuid1               2.25.2-5
ii  lsb-base               4.1+Debian13+nmu1
ii  policykit-1            0.105-8
ii  udev                   215-12
ii  wpasupplicant          2.3-1

Versions of packages network-manager recommends:
ii  crda            3.13-1
ii  dnsmasq-base    2.72-3
ii  iptables        1.4.21-2+b1
ii  iputils-arping  3:20121221-5+b2
ii  modemmanager    1.4.0-1
ii  ppp             2.4.6-3

Versions of packages network-manager suggests:
pn  avahi-autoipd  <none>
pn  libteam-utils  <none>

-- Configuration Files:
/etc/NetworkManager/NetworkManager.conf changed:
[main]
plugins=ifupdown,keyfile
no-auto-default=00:16:d3:b3:80:1e,ee:b0:3a:d2:89:45,F0:DE:F1:B8:36:FD,
[ifupdown]
managed=false


-- no debconf information

-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20150325/7afdf517/attachment-0001.sig>


More information about the Pkg-utopia-maintainers mailing list