From owner-freebsd-current@FreeBSD.ORG Thu Sep 1 21:43:58 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 40CD016A41F for ; Thu, 1 Sep 2005 21:43:58 +0000 (GMT) (envelope-from jd@ugcs.caltech.edu) Received: from vomit.ugcs.caltech.edu (vomit.ugcs.caltech.edu [131.215.176.103]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED8B443D46 for ; Thu, 1 Sep 2005 21:43:57 +0000 (GMT) (envelope-from jd@ugcs.caltech.edu) Received: by vomit.ugcs.caltech.edu (Postfix, from userid 3640) id 8B591E816; Thu, 1 Sep 2005 14:43:57 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by vomit.ugcs.caltech.edu (Postfix) with ESMTP id 7179DE815; Thu, 1 Sep 2005 14:43:57 -0700 (PDT) Date: Thu, 1 Sep 2005 14:43:57 -0700 (PDT) From: Jon Dama To: Kevin Oberman In-Reply-To: <20050901212645.BE5615D07@ptavv.es.net> Message-ID: References: <20050901212645.BE5615D07@ptavv.es.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Jochen Gensch , freebsd-current@freebsd.org Subject: Re: Default route doesn't change to wireless device (ath0) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Sep 2005 21:43:58 -0000 If the start_if.ath0 script isn't running, you should check that you have removable_interfaces="ath0" in rc.conf. Though, I saw some traffic that say this was going away. Anyway, quoting Brooks in "HEADSUP: OpenBSD dhclient incoming" "Second the pccard_ifconfig variable is only used as a default value for interfaces that are on the removable_interfaces list, but do not have an ifconfig_ variable. Third, interfaces must be on the removable_interfaces list for pccard_ether to work." There should not be a need to modify devd.conf as there is already this line: attach 0 { device-name "$ethernet-nic-regex"; action "/etc/pccard_ether $device-name start"; } The regex does cover ath0, and pccard_ether should handle the event if the interface is listed in removable_interfaces I also saw some traffic from Brooks where he explicitly stated that the new dhclient does not touch the default route if one is already configured. afaik, this should not actually be a problem because start_if is always run before dhclient has a change to start. Also I agree, it would rather dangerous if dhclient just started flushing the routing table. Incidentially, I've seen this topic come up a dozen times + never knew what do myself until Nate Lawson pointed me in the right direction a year ago. At that time, he remarked that this stuff isn't documented any where + it really should be in the handbook. Can someone point me to where I should look for information on how to contribute to the handbook in a format that is likely to be accepted? This is such a standard thing to want, it has to be done! -Jon On Thu, 1 Sep 2005, Kevin Oberman wrote: > > Date: Thu, 1 Sep 2005 13:01:38 -0700 (PDT) > > From: Jon Dama > > Sender: owner-freebsd-current@freebsd.org > > > > Flush the routing table or at least delete the default entry in a > > start_if.ath0 script. > > This is obvious, but does not answer the question: "Can't that be done > automatically on plugging in either?" > > As I recall, when the OpenSSH dhclient was added, one of the things it > was supposed to do was flush the routing table. This never seems to have > happened and I'm not sure I'd want it to. > > Maybe devd could automate it? (I think I'm going to try that.) > -- > R. Kevin Oberman, Network Engineer > Energy Sciences Network (ESnet) > Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) > E-mail: oberman@es.net Phone: +1 510 486-8634 > > > > On Thu, 1 Sep 2005, Jochen Gensch wrote: > > > > > Hi! > > > > > > If I plug in my wireless nic (atheros) it comes up automatically through > > > wpa_supplicant. However the default route still points to my non wireless > > > nic (fxp0) even if remove the network cable before plugging in the wireless > > > device. I have found no way around this, the only way of getting the > > > default route changed to ath0 is setting in manually. Can't that be done > > > automatically on plugging in either? >