Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Sep 2004 16:37:21 +0100
From:      "Markie" <mark.cullen@dsl.pipex.com>
To:        <freebsd-questions@freebsd.org>
Subject:   Better way to get interface assigned to default route?
Message-ID:  <000b01c49295$15ed6b80$f800000a@laptop>

next in thread | raw e-mail | index | archive | help
Hi all,

I just now replaced my 350MHz PII home server back to the old 133MHz PI to
see if my crashing problems went away. I have noticed that dhclient-script
does a `netstat -rn | grep "^default" | awk {'print $6'}` to get the
interface that the default route is on, in my case my dsl modem is on fxp1.
Since this is a slow machine however, this takes a very long time for it to
do that command as I seem to have quite alot of...routing entries I guess
they are?

So, simple question really... does anyone else know a better way this can
be done, or is this the only way? If it's the only way i'll just change
dhclient-script so it's fixed as fxp1 and doesn't do the whole netstat -rn
thing to try and get that...

Thanks.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000b01c49295$15ed6b80$f800000a>