From owner-freebsd-questions@FreeBSD.ORG Sat Sep 4 16:23:52 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D2C1716A4CE for ; Sat, 4 Sep 2004 16:23:52 +0000 (GMT) Received: from redqueen.elvandar.org (cust.94.120.adsl.cistron.nl [195.64.94.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E55843D1F for ; Sat, 4 Sep 2004 16:23:50 +0000 (GMT) (envelope-from remko@elvandar.org) Received: from [10.0.2.122] (nimrod.elvandar.intranet [10.0.2.122]) by redqueen.elvandar.org (Postfix) with ESMTP id 04C8910685E; Sat, 4 Sep 2004 18:23:46 +0200 (CEST) Message-ID: <4139EC14.2010209@elvandar.org> Date: Sat, 04 Sep 2004 18:23:48 +0200 From: Remko Lodder X-Accept-Language: en-us, en MIME-Version: 1.0 To: Markie References: <000b01c49295$15ed6b80$f800000a@laptop> In-Reply-To: <000b01c49295$15ed6b80$f800000a@laptop> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at elvandar.org cc: freebsd-questions@freebsd.org Subject: Re: Better way to get interface assigned to default route? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Sep 2004 16:23:52 -0000 Hi Markie, Markie wrote: > 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? Okay it seems to me that you want to use DHCP in order to get your ass (machine) in the internet. That seems rather logically, only i use the dhclient command (dhclient rl0 for example). To me it sounds rather silly to do a netstat -rn command, checkup the default route interface and then add dhcp stuff into it.. since dhcp sets these default route for me.. Perhaps you can try and see if that works quicker :) Cheers -- Kind regards, Remko Lodder |remko@elvandar.org Reporter DSINet |remko@dsinet.org Projectleader Mostly-Harmless |remko@mostly-harmless.nl