From owner-freebsd-questions@FreeBSD.ORG Mon Nov 29 21:30:12 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 8C60C16A4CE for ; Mon, 29 Nov 2004 21:30:12 +0000 (GMT) Received: from postfix3-1.free.fr (postfix3-1.free.fr [213.228.0.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3DB0E43D45 for ; Mon, 29 Nov 2004 21:30:12 +0000 (GMT) (envelope-from yannick_bre@yahoo.fr) Received: from [192.168.0.3] (rueil-4-82-230-39-11.fbx.proxad.net [82.230.39.11]) by postfix3-1.free.fr (Postfix) with ESMTP id 322581734F0 for ; Mon, 29 Nov 2004 22:30:10 +0100 (CET) Message-ID: <41AB94C9.7040901@yahoo.fr> Date: Mon, 29 Nov 2004 22:29:45 +0100 From: Yannack User-Agent: Mozilla Thunderbird 0.9 (X11/20041124) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Multiple NICs 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: Mon, 29 Nov 2004 21:30:12 -0000 Hello, I have just recently installed FreeBSD release 5.3. I am loving it but have a network question. I have two network cards, one for ethernet, one for wifi. I would like to have them both setup to be on DHCP configuration. Now the problem is that whatever order i put the setting in rc.conf, i always end up with the wifi gateway as my default route. I would like it to be the ethernet gateway when available, and only if not available the wifi (as my wifi gateway is kind of restrictive). Shortly made: to give the hardwire connection priority. This is what i tried setting in rc.conf: ifconfig_an0="DHCP" ifconfig_fxp0="DHCP" and ifconfig_fxp0="DHCP" ifconfig_an0="DHCP" 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), so i ended up commenting out the wifi line (an0) and activating it by hand when needed... However this is quite troublesome as it means killing the dhclient running, before running another dhclient an0... If anybody has a better suggestion for me I would be quite grateful! Thanks!!! Yannack