Wicd should allow for configuration of network metric

Bug #249983 reported by Loye Young on 2008-07-18
Affects Status Importance Assigned to Milestone
David Paleino

Bug Description

Wicd should allow for configuration of network metric.

We ship computers with both wired and wireless interfaces. Ifupdown manages the wired interface, and wicd manages the wireless interface.

All works well, except when both interfaces create default routes, both with metric equal to 0. (The metric setting breaks the tie between multiple default routes.) For the wired connection, we simply add the metric argument in /etc/network/interfaces. Because wicd doesn't allow for configuring the metric, we set the eth0 metric to 1 in order to break the tie. E.g.,

auto eth0
iface eth0 inet dhcp
    metric 1

However, since the wired connection is much faster, we'd rather set the metric for eth0 to 0 and the metric for the wireless connection to 1, which would provide the best of all worlds.

A relatively simple fix is for wicd to provide an optional metric setting, which would be passed to ifmetric.

It would require a dependency to ifmetric, but there's not a downside to that AFAIK.

Happy Trails,

Loye Young
Isaac & Young Computer Company
Laredo, Texas

Dan O'Reilly (oreilldf) wrote :

Is there any advantage that ifmetric provides over just using "ifconfig metric"?

Changed in wicd:
importance: Undecided → Wishlist
status: New → Incomplete

On Fri, Jul 18, 2008 at 8:10 PM, Dan O'Reilly <email address hidden> wrote:
>Is there any advantage that ifmetric provides over just using "ifconfig

Yes. Ifconfig metric sets the metric for the interface. Ifmetric tells the
networking stack what to do with that information.

Happy Trails,

Loye Young
Isaac & Young Computer Company
Laredo, Texas

Changed in wicd:
milestone: none → vpb-alpha
David Paleino (dpaleino) on 2011-09-18
Changed in wicd:
status: Incomplete → Confirmed
David Paleino (dpaleino) on 2012-02-05
Changed in wicd:
milestone: 2.0 → 1.7.2
assignee: nobody → David Paleino (dpaleino)
David Paleino (dpaleino) on 2012-04-11
Changed in wicd:
milestone: 1.7.2 → 1.7.3
David Paleino (dpaleino) on 2012-05-03
Changed in wicd:
status: Confirmed → In Progress
David Paleino (dpaleino) wrote :

Hello Loye,

I'm investigating this bug for inclusion in the upcoming 1.7.3 release.

Could you please clarify the difference between "ifmetric" and "ifconfig metric"? Googling a bit, I saw no difference, apart from "ifmetric" being recommended more than once.

Wouter Valk (wvalk) wrote :

Hello David,

As far as i know ifmetric allows you to define the metric attribute in /etc/network/interfaces which in his turn probably runs ifconfig metric.

Like Loye said eth0 is mutch faster than wlan or even wwan so allowing wlan to define a metric would be great

Changed in wicd:
milestone: 1.7.3 → 1.7.4
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers