dhclient and metric

dhclient and metric

NewsGroups | Search | Tools
 comp.dcom.lans.ethernet  Post an article  get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content  add this group's latest topics to your Google content  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
dhclient and metric Bill Michaelson 09-13-2006
|--> Re: dhclient and metric Robert Redelmei ..09-13-2006
`--> Re: dhclient and metric glen herrmannsf ..09-13-2006
Posted by Bill Michaelson on September 13, 2006, 4:10 pm
If you were  Registered and logged in, you could reply and use other advanced thread options


My LANs have a route to the Internet thru a box running SuSE 10.1. It
has a FiOS connection (Verizon) and a cable connection (Comcast). I can
statically configure this such that the cable connection, which is
slower, has a higher metric. And by setting
/proc/sys/net/ipv4/route/gc_timeout to a low value, I have a quick
automatic fallback.

That's all fine so far, but the Comcast connection gets its IP via DHCP,
and I'm running dhclient. So the question is about the best way to
assign the higher metric to this route automatically upon startup
(reboot, whatever). There appears to be no provision for this in
dhclient.conf.

Any suggestions?

NMFall 20%
Posted by Robert Redelmeier on September 13, 2006, 4:32 pm
If you were  Registered and logged in, you could reply and use other advanced thread options


> My LANs have a route to the Internet thru a box running
> SuSE 10.1. It has a FiOS connection (Verizon) and a cable
> connection (Comcast). I can statically configure this such
> that the cable connection, which is slower, has a higher
> metric. And by setting /proc/sys/net/ipv4/route/gc_timeout
> to a low value, I have a quick automatic fallback.

> That's all fine so far, but the Comcast connection gets its
> IP via DHCP, and I'm running dhclient. So the question is
> about the best way to assign the higher metric to this
> route automatically upon startup (reboot, whatever).
> There appears to be no provision for this in dhclient.conf.

Find the script (under /etc/rc.d -- good luck with
SysV mess'o'symlinks!) that runs dhclient and add
ifconfig eth1 metric 4
after the dhclient invocation or to some rc.local script.
It should persist though dhclient changes and eth1 up/down .

I like to think of dhclient and friends as nothing more than
script daemons that do little more than `ifconfig` and `route`.

-- Robert




Posted by glen herrmannsfeldt on September 13, 2006, 4:34 pm
If you were  Registered and logged in, you could reply and use other advanced thread options


(snip)

> That's all fine so far, but the Comcast connection gets its IP via DHCP,
> and I'm running dhclient. So the question is about the best way to
> assign the higher metric to this route automatically upon startup
> (reboot, whatever). There appears to be no provision for this in
> dhclient.conf.

Try comp.protocols.tcp-ip or a linux networking newsgroup.

-- glen


other useful resources:
The Federal Communications Commission (FCC)
Telecommunications Industry Association
Electronic and Software Security Products and Services
International Telecommunication Union

Custom CGI Perl and PHP programming by 1-Script.com

Contact Us | Privacy Policy
The site map in XML format XML site map