From owner-freebsd-rc@FreeBSD.ORG Tue Jun 2 16:47:10 2009 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A2625106566C; Tue, 2 Jun 2009 16:47:10 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id 704278FC35; Tue, 2 Jun 2009 16:47:10 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from trouble.errno.com (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id n52GAZWA059074 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 2 Jun 2009 09:10:35 -0700 (PDT) (envelope-from sam@freebsd.org) Message-ID: <4A254EFB.2020001@freebsd.org> Date: Tue, 02 Jun 2009 09:10:35 -0700 From: Sam Leffler Organization: FreeBSD Project User-Agent: Thunderbird 2.0.0.21 (X11/20090411) MIME-Version: 1.0 To: Brooks Davis References: <4A21A4F6.5060709@dougbarton.us> <20090601212506.GA2351@lor.one-eyed-alien.net> <4A24B99B.9050703@infracaninophile.co.uk> <20090602155403.GF14685@lor.one-eyed-alien.net> In-Reply-To: <20090602155403.GF14685@lor.one-eyed-alien.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC-Misty-Metrics: ebb.errno.com; whitelist Cc: freebsd-rc@freebsd.org Subject: Re: Removal of deprecation for network_interfaces != AUTO X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jun 2009 16:47:11 -0000 Brooks Davis wrote: > On Tue, Jun 02, 2009 at 06:33:15AM +0100, Matthew Seaman wrote: > >> Brooks Davis wrote: >> >> >>> I've never seen a valid use case, just failures to understand the >>> current system. >>> >> My laptop has iwi0 and bge0 interfaces. At work, both of these obtain >> addresses and default routes by DHCP, but from two completely different DHCP >> servers. When I'm plugged into the wired network I want the bge0 interface to >> be the default route, but iwi0 comes first in the list of interfaces produced >> by ifconfig, so it gets configured first and sets the route. Of course, when >> I'm not plugged into the wired network I want iwi0 to have the default route, >> so I can't just use dhclient.conf to disregard routing information on that >> interface. >> >> All in all, setting network_interfaces="bge0 iwi0 lo0" does exactly what I >> want with minimal effort. >> > > This is an interesting use case. This is certainly the easiest way > to do this in 7. FYI, it won't work by default in 8.0 because we > only run dhclient from devd so there is no ordering unless you set > synchronous_dhclient="YES". What I've been thinking here is that we > should have a way to tell dhclient which interface(s) to prefer for a > default route. I've been meaning to fix that for a while, but since > I've been using a cardbus wireless device, I've not needed to scratch > that itch. > Some people prefer to use lagg's failover handling to handle the wired-wireless switchover. Sam