From owner-freebsd-current@FreeBSD.ORG Fri Sep 2 08:04:18 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 DCA8C16A41F for ; Fri, 2 Sep 2005 08:04:18 +0000 (GMT) (envelope-from incmc@gmx.de) Received: from mail.gmx.net (pop.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 0C64E43D53 for ; Fri, 2 Sep 2005 08:04:17 +0000 (GMT) (envelope-from incmc@gmx.de) Received: (qmail invoked by alias); 02 Sep 2005 08:04:16 -0000 Received: from dsl-084-061-011-192.arcor-ip.net (EHLO ms.homeip.net) [84.61.11.192] by mail.gmx.net (mp029) with SMTP; 02 Sep 2005 10:04:16 +0200 X-Authenticated: #15946415 Received: from p508f5bee.dip.t-dialin.net ([80.143.91.238] helo=nix-rechnername-auspaehen-hier) by ms.homeip.net with esmtpsa (SSLv3:RC4-MD5:128) id 1EB6X0-000L0T-Bq; Fri, 02 Sep 2005 10:04:14 +0200 From: Jochen Gensch To: Brooks Davis , freebsd-current@freebsd.org Date: Fri, 2 Sep 2005 10:03:39 +0200 User-Agent: KMail/1.8.2 References: <20050901225346.0923E16A41F@hub.freebsd.org> <200509020126.45337.incmc@gmx.de> <20050902015242.GJ4108@odin.ac.hmc.edu> In-Reply-To: <20050902015242.GJ4108@odin.ac.hmc.edu> MIME-Version: 1.0 Content-Disposition: inline X-UID: 1 X-Length: 2202 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <200509021003.39863.incmc@gmx.de> X-Y-GMX-Trusted: 0 Cc: 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: Fri, 02 Sep 2005 08:04:19 -0000 Am Freitag 02 September 2005 03:52 schrieben Sie: > The issue is that start_if.ath0 always runs at boot or when > you insert the card, but not when you get a lease. If you want to take > an action when you get a lease, you need to do it in the dhclient hooks. I cannot manage to get ath0 up properly. If dhclient doesn't change the default route again, once a device got it one should be able to do it by hand. So when I bootet the system was running on fxp0. Then I did the followiing: SU NB /:route -n flush -inet default 10.0.0.1 done 10.0.0.104 127.0.0.1 done [REMOVED network cable from fxp0] [Pluged in wireless nic ath0] SU NB /:ping i-mc.de PING i-mc.de (213.203.199.12): 56 data bytes ping: sendto: No route to host ^C --- i-mc.de ping statistics --- 2 packets transmitted, 0 packets received, 100% packet loss [OK, routes have not been corrected yet] SU NB /:route add default 10.0.0.1 route: writing to routing socket: File exists add net default: gateway 10.0.0.1: File exists [Why does that route sitll exist, it has been deleted above] SU NB /:ping i-mc.de ^C SU NB /:route delete default delete net default SU NB /:route add default 10.0.0.1 add net default: gateway 10.0.0.1 SU NB /:ping i-mc.de ^C I cannot set the routes to ath0 once fxp0 was active. I guess I must still be misunderstandung what you guys are saying / doing. Jochen