Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Jul 2005 14:21:46 -0700
From:      "Darren Pilgrim" <dmp@bitfreak.org>
To:        "'Eric Anderson'" <anderson@centtech.com>
Cc:        freebsd-current@freebsd.org
Subject:   RE: Problems with OpenBSD dhclient
Message-ID:  <003c01c588ba$0ad14a70$642a15ac@SMILEY>
In-Reply-To: <42D6C686.4070407@centtech.com>

next in thread | previous in thread | raw e-mail | index | archive | help
From: Eric Anderson
>=20
> Here's what I think would work well in most situations:
>=20
>   If another interface (B) is currently down, that has=20
> dhclient running=20
> on it, then when interface (A) comes up with a valid ip, it should=20
> remove the ip info from interface (B).

This is a very bad idea.  Unless the interfaces have been bonded or
configured as redundant for each other, they're independent by design.
If I'm using the wired port to do any of the many useful things one can
do with multiple interfaces (diagnostics, configuring new devices
without loss of internet access, etc.), I don't want the unavoidable
link-state changes on that interface to result in my wireless connection
going down.

> If an interface (A) changes from down->up has conflicting IP=20
> information=20
> with an interface (B) that is down, that dhclient manages, it should=20
> remove the IP setup from interface (B), and set routes=20
> according to the=20
> newly upped interface.
>
> If an interface (A) changes from down->up, and there is another=20
> interface (B) that is up that dhclient manages, then=20
> configure interface=20
> (A) only if it will not conflict with the other interface's=20
> (B) network.=20
>   This could be an rc.conf option - to force newly brought up=20
> interfaces=20
> to override currently up interfaces.

No.  Multiple interfaces with addresses in the same subnet (or even the
same address) is a routing issue.  Dhclient is not the correct tool to
solve routing issues.

A dhclient program needs to do only one thing: negotiate a lease for the
interface specified.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?003c01c588ba$0ad14a70$642a15ac>