From owner-freebsd-mobile Sun Oct 6 12:20:20 2002 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 5D4CA37B401 for ; Sun, 6 Oct 2002 12:20:18 -0700 (PDT) Received: from ncsmtp03.ogw.rr.com (ncsmtp03.ogw.rr.com [24.93.67.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id A966E43E77 for ; Sun, 6 Oct 2002 12:20:17 -0700 (PDT) (envelope-from eric@nc.rr.com) Received: from mail7.nc.rr.com (fe7 [24.93.67.54]) by ncsmtp03.ogw.rr.com (8.12.5/8.12.2) with ESMTP id g96JK7iZ011402 for ; Sun, 6 Oct 2002 15:20:07 -0400 (EDT) Received: from cumulus.poladog.org ([24.162.235.209]) by mail7.nc.rr.com with Microsoft SMTPSVC(5.5.1877.757.75); Sun, 6 Oct 2002 15:20:16 -0400 Received: by cumulus.poladog.org (Postfix, from userid 2657) id 97BF3F8292; Sun, 6 Oct 2002 15:13:06 -0400 (EDT) Date: Sun, 6 Oct 2002 15:13:06 -0400 From: Eric Gebhart To: FreeBSD mobile list Subject: Mobile Networking. Message-ID: <20021006151306.B11678@unx.sas.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i 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 When I started using my laptop last year I was immediately annoyed by my networking setup. At home I have wireless. At work I had wire. But If I had fxp0=DHCP in my rc.conf then the etc/networking script would always do dhclient with it. Even if there was no connection on it. I resorted to editing the network script before shutdown for awhile. Reversing the wi0 and fxp0 dhcp setting for the next boot up. Finally I wrote a script that smartly runs dhclient on the preferred interface. If both interfaces are up it will run it on the highest ranked interface. Once that was working life was much more pleasant. But there were still things that were different between my setups at home and work. nfs mounts, automount, vpn, proxy servers, etc. I wrote another script that looks for a given machine on the local net and then runs the associated script at startup and shutdown. I run my own dns, that helps some. I also run my own squid. I couldn't figure out how to make squid work both with a parent and without depending on if the parent was there. So I have two squid configs that my scripts swap depending on the location. Now I have wireless at work. So now I have multiple access points to deal with. Each with it's own set of wep keys, channel, etc. I need to be able to look through my known AP's and find out if one of them is available. If it is then use it. Then continue on with figuring out which network I might be on... I mostly have this working although I've found a lot of inconsistency with wireless cards telling me that they are 'not associated' or have 'no signal' when they really do. I've thought about hooking in kismet to handle all the wireless detection issues. But I haven't taken that step yet. All my scripts are configurable using settings /etc/rc.conf.local and by adding functions to a script in /usr/local/etc. I have to think that these issues are common to most people who use a laptop on more than one network. So how does everyone else deal with these problems? Eric To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message