Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Apr 2002 17:09:33 +0200
From:      Paul Schenkeveld <paul@psconsult.nl>
To:        Ben Lovett <blovett@bsdguru.com>, Paul Schenkeveld <paul@psconsult.nl>, mobile@freebsd.org
Subject:   Re: on-board ethernet and mobility
Message-ID:  <20020422170933.A14341@psconsult.nl>
In-Reply-To: <20020421161001.GB16636@bsdguru.com>; from blovett@bsdguru.com on Sun, Apr 21, 2002 at 09:10:01AM -0700
References:  <20020421114601.A291@psconsult.nl> <20020421161001.GB16636@bsdguru.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020422170933.A14341>