From owner-freebsd-mobile@FreeBSD.ORG Mon Jul 19 17:24:21 2004 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 CD21B16A4CE for ; Mon, 19 Jul 2004 17:24:21 +0000 (GMT) Received: from lion-msrvp.LeidenUniv.nl (lion-msrvp.leidenuniv.nl [132.229.216.56]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D9F343D4C for ; Mon, 19 Jul 2004 17:24:21 +0000 (GMT) (envelope-from graaf@Phys.LeidenUniv.nl) Received: by lion-msrvp.leidenuniv.nl with Internet Mail Service (5.5.2655.55) id <3N49XQZN>; Mon, 19 Jul 2004 19:24:30 +0200 Message-ID: From: "Graaf, Rob" To: 'Kevin Oberman ' , 'Jason Dusek ' Date: Mon, 19 Jul 2004 19:24:29 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2655.55) Content-Type: text/plain; charset="iso-8859-1" cc: "'mobile@freebsd.org '" Subject: RE: Smooth Wireless 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, 19 Jul 2004 17:24:22 -0000 >From FreeBSD 5.x, all cards inserted/attached and removed/detached, are done by the devd and not the pccardd. My card attaches itself always on wi0, so the configuration becomes: /etc/devd.conf attach 100 { device-name "wi0"; action "echo 'starting dhclient though pccard_ether from devd.conf' >> /var/log/messages"; action "/etc/pccard_ether $device-name start"; }; detach 100 { device-name "wi0"; # action "/etc/pccard_ether $device-name stop"; }; the pccard script is started, and dhclient uses the configuration in /etc/dhclient.conf interface "wi0" { send dhcp-client-identifier "dowould"; # media "nwid 'mynetwork' -nwkey"; # force 'mynetwork' network media "nwid '' -nwkey"; # open network request subnet-mask, broadcast-address, routers, domain-name-servers, domain-name, time-servers; } Make sure all right settings are in /etc/rc.conf More on this on my webpage: http://www.rdegraaf.nl/freebsd/ Greetings Rob -----Original Message----- From: Kevin Oberman To: Jason Dusek Cc: mobile@freebsd.org Sent: 7/19/04 5:59 PM Subject: Re: Smooth Wireless > Date: Mon, 19 Jul 2004 10:34:40 -0500 > From: Jason Dusek > Sender: owner-freebsd-mobile@freebsd.org > > Hi Everyone, > > I would like to know about the right way to set up wireless. I have > Dell D600 with a Dell TrueMobile 1350 running CURRENT. Ndis works > well, and I've written a shell script that brings up my wireless > interface everytime that I boot. However, running wireless is still > not very smooth. I have a host of problems: > > => If I leave a wireless zone and then hook-up an ethernet cord my computer > will not simply switch to the corded interface. I have to run sysinstall. > => If I boot up with the ethernet configured and then enter a wireless zone, I > can't simply switch to the wireless - I have to run sysinstall. > => If I go from one wireless zone to another, I have to run sysinstall. > => Sometimes when I bring the wireless up in sysinstall, I get a 'page fault' > and my system crashes. > > How do I get my machine to dynamically pick the interface that is > working? And what do I do about these page faults? I have looked at > the Handbook, etc., and while there is some useful information there I > can't find anything that deals with changing one's interface on the > fly. OK. I give up. Why are you using sysinstall? I mean,this looks like a very awkward. I don't know of a way to do it dynamically, but something with devd might be possible. The basic steps to switching are: Disable old routes. (route flush) Configure new interface. (This usually means restarting dhclient.) Enable new routes. (May be a no-op as dhclient should do this.) That should be it. You might want/need to turn down the old interface with 'ifconfig INT down'. I tool to do most of this for you is available at: https://projects.fsck.ch/profile/ It's still in development, but generally works on current systems. It's based on rcng, so it will not work on V4 systems. -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 _______________________________________________ freebsd-mobile@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-mobile To unsubscribe, send any mail to "freebsd-mobile-unsubscribe@freebsd.org"