From owner-freebsd-stable Sun Mar 17 12:19:42 2002 Delivered-To: freebsd-stable@freebsd.org Received: from ns.altadena.net (ns.altadena.net [206.126.144.2]) by hub.freebsd.org (Postfix) with ESMTP id DC7A837B417 for ; Sun, 17 Mar 2002 12:19:37 -0800 (PST) Received: (from pete@localhost) by ns.altadena.net (8.11.6/8.8.8) id g2HKIC385006; Sun, 17 Mar 2002 12:18:12 -0800 (PST) (envelope-from pete) From: Pete Carah Message-Id: <200203172018.g2HKIC385006@ns.altadena.net> Subject: Re: if_wi with dhclient problem In-Reply-To: <20020315.215950.84650258.imp@village.org> from "M. Warner Losh" at "Mar 15, 2002 09:59:50 pm" To: "M. Warner Losh" Date: Sun, 17 Mar 2002 12:18:12 -0800 (PST) Cc: stable@freebsd.org X-Mailer: ELM [version 2.4ME+ PL68 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=iso8859-1 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > In message: <200203150034.g2F0Ypc49439@ns.altadena.net> > Pete Carah writes: > : > Just curious... you said you had an fxp0 in this machine. > : > > : > Try "ifconfig fxp0 down" before doing the "dhclient wi0". > : > : This has never been needed before last week. It apparently is needed > : if I use IPX but I don't. And, adding an IP address (*any* IP addr) > : to the wi0 before dhclient makes it work even without downing the > : fxp. I think there is a (new) feature to if_wi that won't send any IP > : packet if it doesn't have an address yet. > : > : (The other case where downing the fxp has been needed is if it had an > : address and default route before inserting the wireless card. However > : that isn't the case here either; I'm starting from a fresh boot). > > Since ifconfig fxp0 down fixes this problem for me, I doubt it is a wi > driver problem. I suspect that it is an intended side effect of some > more restrictive checking that's done in the network layer. Another interesting note: either "ifconfig wi0 10.0.0.1" or "ifconfig fxp0 0.0.0.0 delete" (not necessarily all the way down) also fixes "dhclient wi0". And "dhclient fxp0" done first works independently of having an address first; this is why I didn't suspect anything in the ip stack. The first (involving only wi0) suggests a fix to dhclient :-) My real point is that "dhclient wi0" needs to be independent of *anything* on any other interface. And, there *are* cases where one wants dhcp on more than one interface (or, for example, the in-between case like a cable-modem where there is a permanent addr on one interface and dhcp on another)... The "ifconfig ... down" suggestion is OK as a workaround but NOT permanently (though I do have a different workaround that does involve only wi0, just set an IP address (*any* IP address) on it.) However, as a permanent solution it belongs IN dhclient, not in addition. Is there a "pre" script or a "pre" invocation of the dhclient-script? If so there is an easy place to put such a fix. > Warner -- Pete To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message