Bug 2080 - route metrics are not applied
Summary: route metrics are not applied
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 1
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard:
Keywords: validated_update
Depends on:
Blocks:
 
Reported: 2011-07-08 19:18 CEST by José Jorge
Modified: 2011-09-05 21:58 CEST (History)
7 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments

Description José Jorge 2011-07-08 19:18:24 CEST
Description of problem:
In draknetcenter, we can write the metrics of an interface in advanced. It writes in 
/etc/sysconfig/network-scripts/ifcfg-eth0
a line like
METRIC=10

But the route command always shows METRIC=0 for all interfaces.
It seems this parameter is not applied.
Comment 1 Dave Hodgins 2011-07-08 23:33:42 CEST
Seems to be working here on my i586 system ...
# route|grep -e default -e Metric
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         192.168.10.1    0.0.0.0         UG    10     0        0 eth0

CC: (none) => davidwhodgins

Comment 2 José Jorge 2011-07-09 09:09:37 CEST
I tried to apply manually :

ifconfig  eth0 metric 10
SIOCSIFMETRIC: Operation not supported

As this is new hardware, maybe a driver limitation? Strange that both Ethernet and Wi-Fi have the problem :

wl              : Broadcom Corporation|BCM43224 802.11a/b/g/n [NETWORK_OTHER] (vendor:14e4 device:4353 subv:103c subd:1510) (rev: 01)
e1000e          : Intel Corporation|82577LC Gigabit Network Connection [NETWORK_ETHERNET] (vendor:8086 device:10eb subv:103c subd:1471) (rev: 05)
Comment 3 Jani Välimaa 2011-08-12 18:57:32 CEST
I'm facing similar problems. But I noticed that one can edit metrics manually with cmd ifmetric from pkg ifmetric.

CC: (none) => jani.valimaa

Manuel Hiebel 2011-08-12 19:00:04 CEST

CC: (none) => mageia

Comment 4 Jani Välimaa 2011-08-12 19:46:40 CEST
Actually noticed that all this is caused by ifmetric failing sometimes. Added patch from Debian bugtracker [1] to ifmetric and it solves the problem, at least for me.

Pushed new ifmetric version to core/updates_testing. Please test if ifmetric-0.3-9.1.mga1 solves the problem also for you.

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=514197#22
Comment 5 José Jorge 2011-09-03 22:59:53 CEST
Problem solved with new ifmetric

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 6 Jani Välimaa 2011-09-04 19:39:08 CEST
I'm reopening as this new ifmetric pkg should be pushed to core/updates too. 

However this may be a bit tricky to test and QA'ed as not every system is affected.. At least the new pkg has fixed the bug for me and the original poster.

Status: RESOLVED => REOPENED
Resolution: FIXED => (none)
Assignee: bugsquad => qa-bugs

Comment 7 claire robinson 2011-09-05 15:36:22 CEST
I've tried to test this but the only way I'm able to alter the metric is via the Network Centre.

ifmetric gives no error but has no affect
ifconfig eth1 metric 10 gives SIOCSIFMETRIC: Operation not supported

I don't think I am able to test this update.

Can you say which architectures you both tested on please, we may be able to validate it that way if both i586 & x86_64 are covered.

CC: (none) => eeeemail

Comment 8 Derek Jennings 2011-09-05 17:22:46 CEST
On my x86_64 I can confirm that before installing ifmetric adjusting the metric parameter in mcc had no effect. The metric remained '0'

On installing ifmetric and stopping starting the interface, then the metric is correctly reported as that set in mcc.

It appears to work as advertised.

CC: (none) => derekjenn

Comment 9 Jani Välimaa 2011-09-05 17:30:50 CEST
I've tested this with my i586 machine. I have also a x86_64 (cauldron) machine
but can't remember if it was also affected.

However, setting metrics with cmd 'ifmetrics eth0 22' as root works now in both
machines. This can be confirmed with cmd 'route -n' afterwards.
Comment 10 claire robinson 2011-09-05 18:11:52 CEST
Thankyou both.

I think that as this is difficult to reproduce without affected systems and it has been shown to be an effective solution for both i586 and x86_64 it should be OK to validate.

Advisory:

-------------

This update corrects an issue with setting the metric of a network interface with some configurations.

-------------

SRPM: ifmetric-0.3-9.1.mga1.src.rpm



Could somebody from sysadmin please push this from core/updates_testing to core/updates.


Thankyou!

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs

claire robinson 2011-09-05 18:13:54 CEST

Hardware: x86_64 => All

Comment 11 D Morgan 2011-09-05 21:58:16 CEST
update pushed.

Status: REOPENED => RESOLVED
CC: (none) => dmorganec
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.