From owner-freebsd-mobile Mon Apr 22 13: 2:55 2002 Delivered-To: freebsd-mobile@freebsd.org Received: from pop3.psconsult.nl (ps226.psconsult.nl [193.67.147.226]) by hub.freebsd.org (Postfix) with ESMTP id 14AC837B4AD for ; Mon, 22 Apr 2002 13:01:38 -0700 (PDT) Received: (from paul@localhost) by pop3.psconsult.nl (8.9.2/8.9.2) id RAA14472; Mon, 22 Apr 2002 17:09:33 +0200 (CEST) (envelope-from paul) Date: Mon, 22 Apr 2002 17:09:33 +0200 From: Paul Schenkeveld To: Ben Lovett , Paul Schenkeveld , mobile@freebsd.org Subject: Re: on-board ethernet and mobility Message-ID: <20020422170933.A14341@psconsult.nl> References: <20020421114601.A291@psconsult.nl> <20020421161001.GB16636@bsdguru.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20020421161001.GB16636@bsdguru.com>; from blovett@bsdguru.com on Sun, Apr 21, 2002 at 09:10:01AM -0700 Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi Ben, All, On Sun, Apr 21, 2002 at 09:10:01AM -0700, Ben Lovett wrote: > Paul, > > Try PCSite. It originally was designed for a mobile system with just > PCCards, but has evolved so that it supports mini-pci cards like your > on-board 3Com. > > It is available from: http://www.sdbug.org/download.php?op=getit&lid=1 > > Hope it helps! I had a look at your PCSite script and if I understand it well it is a tool that should be invoked manually when moving from one network to another. What I was really looking for was the kind of automatic behaviour I experienced with my old Toshiba Libretto ntebook where I only had PCMCIA network cards so once I insert a card, pccardd will launch a dhclient for that card and after that I had pccardd automatically invoke a bunch of scripts to find out where I am (from the IP address obtained, no two of my customers happen to use the same private IP address space fortunately) and then automatically start up all necessary daemons. So to get going I removed ifconfig_xl0="DHCP" from rc.conf and start dhclient from a script in /usr/local/etc/rc.d so that rc.network doesn't hang when I'm not connected through the on-board ethernet. My scripts for determining where I am and starting all daemons now gets started from dhclient-exit-hook so that they work for the on-board xl0 as well as for my PCMCIA an0. From start_if.an0 I kill the running dhclient -d which gets started again from a loop in the rc.d script. To prevent my on-board xl0 from re-using the previously obtained IP address after a timeout when I'm not connected I remove /var/db/dhclient.leases every time before I start dhclient. I know this all sounds like a bunch of hacks but I am kind of limited in the amount of time I've got right now and I need the notebook for an upcoming conference so perhaps I'll polish it all a bit after the conference unless someone else comes up with a better way to do all of this. > -ben > > I believe Paul Schenkeveld (paul@psconsult.nl) scribbled this: > > Hi All, > > > > I just got my Dell Inspiron 4100 last week and nearly finished > > setting it up to work like my old Toshiba Libretto. There's > > however one issue that I might need some help with. > > > > I used to travel around with my Libretto, sometimes connecting > > to a network using a 3Com PCMCIA card, somtimes using a Cisco > > Aironet card and sometimes not connecting at all. > > > > My new Dell has this nice on-board 3Com 100 Mbit ethernet but > > when I enter 'ifconfig_xl0="DHCP"' in my rc.conf booting will > > stop at the point where xl0 gets configured if the on-board > > ethernet is not connected. > > > > I've been thinking to not configure xl0 from rc.network/rc.conf > > but write my own script in /usr/local/etc/rc.d that puts dhclient > > in the background but ideally I'd like to use the on-board > > ethernet just like a PCMCIA interface: only start dhclient when > > the cable is inserted and perhaps also dismantle the xl0 based > > configuration when the cable gets disconnected. > > > > Am I re-thinking something that already exists? > > Am I completely lost and is there a better/more standard way to > > accomplish true mobilitu with my on-board ethernet? > > Any other thoughts? Regards, Paul Schenkeveld To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message