From owner-freebsd-mobile@FreeBSD.ORG Sun Oct 12 23:22:24 2003 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3717716A4B3 for ; Sun, 12 Oct 2003 23:22:24 -0700 (PDT) Received: from sante.techgodz.com (mdsnwi13-vlan436-120.dsl.tds.net [66.222.30.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E9BE43FB1 for ; Sun, 12 Oct 2003 23:22:23 -0700 (PDT) (envelope-from sephtin@techgodz.com) Received: from techgodz.com (unknown [192.168.11.60]) by sante.techgodz.com (Postfix) with ESMTP id 898DC75; Mon, 13 Oct 2003 01:22:40 -0500 (CDT) Message-ID: <3F8A449B.9080506@techgodz.com> Date: Mon, 13 Oct 2003 01:22:19 -0500 From: John User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.5) Gecko/20030923 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-mobile@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: defaultrouter fails on boot, and reinserted card not gettingcorrect config info... X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Oct 2003 06:22:24 -0000 Hi! I'm running 5.1 on a laptop. [sephtin@draxa ~]$ uname -a FreeBSD draxa.techgodz.com 5.1-RELEASE-p5 FreeBSD 5.1-RELEASE-p5 #1: Mon Oct 6 10:35:12 CDT 2003 root@draxa.techgodz.com:/usr/obj/usr/src/sys/draxa i386 I have 2 problems: 1) When booting, with a PC-Card (wi0) in, no matter what defaultrouter= is set to in /etc/start_if.wi0 it always uses what's in /etc rc.conf. I don't understand! /etc/start_if.${interface} is sourced in both /etc/network.subr, as well as /etc/pccard_ether. It is DEFINITELY getting my card's ifconfig_wi0 info from start_if.wi0 (as that is the only place I have the ssid, wepmode and wepkey set, and it finds them correctly...). Shouldn't I be able to override the defaultrouter= in rc.conf with what's in /etc/start_if.wi0??? Just thought to add: the default route that I'm trying to add IS on the same subnet as the IP of the nic... so it isn't failing because of that... 2) On my laptop, I have 2 pccards. One is the dlink wireless (wi0) mentioned above, the other is a linksys 10/100. I NEVER have them in at the same time. When I boot with the wireless card in (after setting the default route by hand... (see problem #1), I remove the card. I get notification that the card has been removed (wi0: detached). I then re-insert the card, and get a notification that the card was inserted(wi0: ..., followed by it's mac, chipset, and supported rates. When I do an ifconfig, it does NOT contain my info for the card (IP, netmask, ssid, wepmode, nor wepkey). Shouldn't it get this info from /etc/start_if.wi0??? I would think it should get both the ifconfig_wi0 parameters, as well as the default router. It is also strange to note, that even if I have defaultrouter= set in rc.conf, it doesn't access it from there... ? Google has so far told me how I'm supposed to set up defaultrouter= in my rc.conf, but doesn't go into what in the startup scripts is failing. Can anyone shed some light, or at least point me in the right direction?? Thanks! John