Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 02 Jun 2009 18:26:35 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Sam Leffler <sam@freebsd.org>
Cc:        Brooks Davis <brooks@freebsd.org>, freebsd-rc@freebsd.org
Subject:   Re: Removal of deprecation for network_interfaces != AUTO
Message-ID:  <4A2560CB.4030307@infracaninophile.co.uk>
In-Reply-To: <4A254EFB.2020001@freebsd.org>
References:  <4A21A4F6.5060709@dougbarton.us>	<20090601212506.GA2351@lor.one-eyed-alien.net>	<4A24B99B.9050703@infracaninophile.co.uk> <20090602155403.GF14685@lor.one-eyed-alien.net> <4A254EFB.2020001@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig475E16B745D0A3726124CC73
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable

Sam Leffler wrote:
> Brooks Davis wrote:
>> On Tue, Jun 02, 2009 at 06:33:15AM +0100, Matthew Seaman wrote:
>> =20
>>> 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 obtai=
n
>>> addresses and default routes by DHCP, but from two completely=20
>>> different DHCP
>>> servers.  When I'm plugged into the wired network I want the bge0=20
>>> 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=20
>>> course, when
>>> I'm not plugged into the wired network I want iwi0 to have the=20
>>> default route,
>>> so I can't just use dhclient.conf to disregard routing information on=
=20
>>> that
>>> interface.
>>>
>>> All in all, setting network_interfaces=3D"bge0 iwi0 lo0" does exactly=
=20
>>> what I
>>> want with minimal effort.
>>>    =20
>>
>> 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.
>>  =20
> Some people prefer to use lagg's failover handling to handle the=20
> wired-wireless switchover.

How does that work if the two interfaces are in entirely different networ=
ks?
Can you trigger an arbitrary action (such as modifying the routing table)=

when a lagg interface fails over?

	Cheers,

	Matthew


--=20
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
                                                  Kent, CT11 9PW


--------------enig475E16B745D0A3726124CC73
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREIAAYFAkolYNIACgkQ8Mjk52CukIzuLgCgk/KKJprDye/bXj0Kmo9dzn9/
EP4An33HvF+t/nJGwy1R13xktmPDTKFo
=FqNo
-----END PGP SIGNATURE-----

--------------enig475E16B745D0A3726124CC73--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A2560CB.4030307>