Bug 193047

Summary: Enhancement - allow dhclient to specify a METRIC for gateways
Product: [Fedora] Fedora Reporter: Valdis Kletnieks <valdis.kletnieks>
Component: dhcpAssignee: David Cantrell <dcantrell>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: FC6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-11-22 16:57:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch to support per-interface METRIC= for dhcp. none

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 .