From owner-freebsd-questions@FreeBSD.ORG Mon Nov 29 22:38:26 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 13B0016A4CE for ; Mon, 29 Nov 2004 22:38:26 +0000 (GMT) Received: from smtp1.utdallas.edu (smtp1.utdallas.edu [129.110.10.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id D589C43D5E for ; Mon, 29 Nov 2004 22:38:25 +0000 (GMT) (envelope-from pauls@utdallas.edu) Received: from utd49554 (utd49554.utdallas.edu [129.110.3.85]) by smtp1.utdallas.edu (Postfix) with ESMTP id 3B1E5388E63; Mon, 29 Nov 2004 16:38:25 -0600 (CST) Date: Mon, 29 Nov 2004 16:38:24 -0600 From: Paul Schmehl To: Yannack , freebsd-questions@freebsd.org Message-ID: <633FEE8B3C1437C2102199D6@utd49554.utdallas.edu> In-Reply-To: <41AB94C9.7040901@yahoo.fr> References: <41AB94C9.7040901@yahoo.fr> X-Mailer: Mulberry/3.1.6 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Re: Multiple NICs X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Paul Schmehl List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Nov 2004 22:38:26 -0000 --On Monday, November 29, 2004 10:29:45 PM +0100 Yannack wrote: > > None of the above work (ie: they both make the default route go through > an0 - wifi - and i suspect this is because the wifi dhcp is slower to > answer than the ethernet one), I suspect you are right. Per the dhclient-script(8) man page: If more than one interface is being used, there's no obvious way to avoid clashes between server-supplied configuration parameters - for example, the stock dhclient-script rewrites /etc/resolv.conf. If more than one interface is being configured, /etc/resolv.conf will be repeatedly initialized to the values provided by one server, and then the other. Assuming the information provided by both servers is valid, this shouldn't cause any real problems, but it could be confusing. I haven't tried this, so I don't know if it will work, but you might try adding the "metric" keyword to your /etc/rc.conf file. "metric n Set the routing metric of the interface to n, default 0. The routing metric is used by the routing protocol (routed(8)). Higher metrics have the effect of making a route less favorable; metrics are counted as addition hops to the destination network or host." If you set the metric higher for the wireless interface, that *should* make the ethernet interface the preferred route *if* it's up. BTW, I don't see any "DHCP" keyword in man ifconfig(8). I'm not sure that entry will do anything in your /etc/rc.conf file. Paul Schmehl (pauls@utdallas.edu) Adjunct Information Security Officer The University of Texas at Dallas AVIEN Founding Member http://www.utdallas.edu