From owner-freebsd-current@FreeBSD.ORG Fri Sep 2 16:49: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 916AB16A41F for ; Fri, 2 Sep 2005 16:49:58 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B27543D45 for ; Fri, 2 Sep 2005 16:49:58 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id j82GnvDH026436; Fri, 2 Sep 2005 09:49:57 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id j82Gnv6Y026433; Fri, 2 Sep 2005 09:49:57 -0700 Date: Fri, 2 Sep 2005 09:49:57 -0700 From: Brooks Davis To: Jochen Gensch Message-ID: <20050902164957.GA22097@odin.ac.hmc.edu> References: <20050901225346.0923E16A41F@hub.freebsd.org> <200509020126.45337.incmc@gmx.de> <20050902015242.GJ4108@odin.ac.hmc.edu> <200509021003.39863.incmc@gmx.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tKW2IUtsqtDRztdT" Content-Disposition: inline In-Reply-To: <200509021003.39863.incmc@gmx.de> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: 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: Fri, 02 Sep 2005 16:49:58 -0000 --tKW2IUtsqtDRztdT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 02, 2005 at 10:03:39AM +0200, Jochen Gensch wrote: > Am Freitag 02 September 2005 03:52 schrieben Sie: >=20 > > The issue is that start_if.ath0 always runs at boot or when=20 > > 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. >=20 > I cannot manage to get ath0 up properly. If dhclient doesn't change the= =20 > default route again, once a device got it one should be able to do it by= =20 > hand. So when I bootet the system was running on fxp0. Then I did the=20 > followiing: >=20 > 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 >=20 > I cannot set the routes to ath0 once fxp0 was active. I guess I must stil= l be=20 > misunderstandung what you guys are saying / doing. I need to see the IPv4 routing table before and after each step to understand what's going. Please send the results of "netstat -rnf inet" at each stage. Also, please, please, please, ping by IP address so we're not testing your resolver (which is dependent on your routing configuration.) -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --tKW2IUtsqtDRztdT Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFDGIK0XY6L6fI4GtQRAkTnAJ4qwar1fi1gg/Z1VipQGun/4GUWVgCgt8G5 wDt8itoXzPCRVGnbmpIZLe4= =FxOo -----END PGP SIGNATURE----- --tKW2IUtsqtDRztdT--