From owner-freebsd-rc@FreeBSD.ORG Tue Jun 2 15:53:55 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 5576C106564A for ; Tue, 2 Jun 2009 15:53:55 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (cl-162.ewr-01.us.sixxs.net [IPv6:2001:4830:1200:a1::2]) by mx1.freebsd.org (Postfix) with ESMTP id B9D868FC2C for ; Tue, 2 Jun 2009 15:53:54 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.14.3/8.14.3) with ESMTP id n52Fs37o015254; Tue, 2 Jun 2009 10:54:03 -0500 (CDT) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.14.3/8.14.3/Submit) id n52Fs3ah015253; Tue, 2 Jun 2009 10:54:03 -0500 (CDT) (envelope-from brooks) Date: Tue, 2 Jun 2009 10:54:03 -0500 From: Brooks Davis To: Matthew Seaman Message-ID: <20090602155403.GF14685@lor.one-eyed-alien.net> References: <4A21A4F6.5060709@dougbarton.us> <20090601212506.GA2351@lor.one-eyed-alien.net> <4A24B99B.9050703@infracaninophile.co.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SxgehGEc6vB0cZwN" Content-Disposition: inline In-Reply-To: <4A24B99B.9050703@infracaninophile.co.uk> User-Agent: Mutt/1.5.17 (2007-11-01) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (lor.one-eyed-alien.net [127.0.0.1]); Tue, 02 Jun 2009 10:54:04 -0500 (CDT) Cc: freebsd-rc@freebsd.org, Doug Barton 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 15:53:55 -0000 --SxgehGEc6vB0cZwN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 02, 2009 at 06:33:15AM +0100, Matthew Seaman wrote: > Brooks Davis wrote: >=20 >> I've never seen a valid use case, just failures to understand the >> current system. >=20 > My laptop has iwi0 and bge0 interfaces. At work, both of these obtain > addresses and default routes by DHCP, but from two completely different D= HCP > servers. When I'm plugged into the wired network I want the bge0 interfa= ce to > be the default route, but iwi0 comes first in the list of interfaces prod= uced > 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 ro= ute, > so I can't just use dhclient.conf to disregard routing information on that > interface. >=20 > All in all, setting network_interfaces=3D"bge0 iwi0 lo0" does exactly wha= t 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=3D"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. -- Brooks --SxgehGEc6vB0cZwN Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iD8DBQFKJUsbXY6L6fI4GtQRAmM2AKCFKh+nyseGgHRFeCTiiIHelucaugCdGbNU mw40HpuvNPSo4bHVzJbXBRE= =zjik -----END PGP SIGNATURE----- --SxgehGEc6vB0cZwN--