From owner-freebsd-mobile@FreeBSD.ORG Fri Oct 17 08:07:27 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 B577D16A4B3 for ; Fri, 17 Oct 2003 08:07:27 -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 887D643FAF for ; Fri, 17 Oct 2003 08:07:26 -0700 (PDT) (envelope-from sephtin@techgodz.com) Received: from 000000252436PC (unknown [192.168.1.8]) by sante.techgodz.com (Postfix) with SMTP id 08525121; Fri, 17 Oct 2003 10:08:00 -0500 (CDT) Message-ID: <000901c394c0$5f490b00$8122410a@corporate.amfam.com> From: "John" To: Date: Fri, 17 Oct 2003 10:07:23 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Subject: defaultrouter fails on boot, and reinserted card not getting correct 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: Fri, 17 Oct 2003 15:07:27 -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 addy, 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