Bug 193047 - Enhancement - allow dhclient to specify a METRIC for gateways
Summary: Enhancement - allow dhclient to specify a METRIC for gateways
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: dhcp
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: David Cantrell
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-05-24 19:36 UTC by Valdis Kletnieks
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version: FC6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-11-22 16:57:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Patch to support per-interface METRIC= for dhcp. (519 bytes, patch)
2006-05-24 19:36 UTC, Valdis Kletnieks
no flags Details | Diff

Description Valdis Kletnieks 2006-05-24 19:36:36 UTC
Description of problem:
Sometimes, a system administrator knows positively that a given interface has a
better or worse preference as a default route.  For instance, my laptop has a
wireless card, and 2 onboard ethernet, and a docking station ethernet.  Thus,
the desired effect is that we want any hard-wired interface to get a default
route, and a wireless to get a default route - at a higher metric.  That way, if
the wireless is the only connection, it will take the default, but if a wired
interface comes up as well, that will take the load.

The attached patch allows the sysadmin to add a 'METRIC=n' to the interface's
/etc/sysconfig/network-scripts/ifcfg-foo file, to manually configure the
preference for the interface.

This functionality is already supported by 'ifup' for non-DHCP interfaces.

Version-Release number of selected component (if applicable):
dhclient-3.0.4-8

How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Valdis Kletnieks 2006-05-24 19:36:36 UTC
Created attachment 129961 [details]
Patch to support per-interface METRIC= for dhcp.

Comment 2 Jason Vas Dias 2006-05-27 00:08:30 UTC
Thanks - patch applied in dhcp-3.0.4-10, in FC-6 / rawhide-2006-05-27 .



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