From owner-freebsd-mobile Wed Mar 22 9:20:59 2000 Delivered-To: freebsd-mobile@freebsd.org Received: from rock.ghis.net (rock.ghis.net [209.222.164.7]) by hub.freebsd.org (Postfix) with ESMTP id 8F30637B99A for ; Wed, 22 Mar 2000 09:20:42 -0800 (PST) (envelope-from will@blackdawn.com) Received: from argon.blackdawn.com (deepspace9.dcds.edu [207.231.151.2]) by rock.ghis.net (8.9.3/8.9.3) with ESMTP id JAA12879; Wed, 22 Mar 2000 09:20:03 -0800 (PST) Received: by argon.blackdawn.com (Postfix, from userid 1000) id AD9C9191B; Wed, 22 Mar 2000 12:19:15 -0500 (EST) Date: Wed, 22 Mar 2000 12:19:15 -0500 From: Will Andrews To: Lars Eggert Cc: freebsd-mobile@FreeBSD.ORG Subject: Re: switching between connected/disconnected operation? Message-ID: <20000322121915.A372@argon.blackdawn.com> References: <14551.49718.603919.823550@hbo.isi.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <14551.49718.603919.823550@hbo.isi.edu>; from larse@isi.edu on Tue, Mar 21, 2000 at 06:40:54PM +0000 X-Operating-System: FreeBSD 5.0-CURRENT i386 Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue, Mar 21, 2000 at 06:40:54PM +0000, Lars Eggert wrote: > we're trying to come up with a way to configure our laptops so that we > can easily switch between connected (i.e. we have a net) and > disconnected (we have no net) states. This does not need to be > automatic (would be nice though), having users type "net on|off" in a > shell is perfectly fine. > > Looking at /etc, it seems that what we'd like requires non-trivial > changes to the configuration; the laptops we'd like this for run a > number of services that would need to be started/stopped: NIS, NFS > (clients), inetd, sendmail, sshd, lpd, amd, named, etc. Some of these > should be okay to leave running when disconnecting (e.g. inetd, sshd). > Others (NIS, NFS, amd) must be stopped/restarted. > > Has anyone ever done this? How? Any pointers? This is for 4.0-RELEASE, > btw. The university you're sending mail from (isi.edu) has software for this purpose (well, sort of). ISI's DHCP client (dhclient) is good for when you connect to a network. Then a small shell script to ifconfig down the interface will do the "off" part of the job. If you insist on static routes (and/or static configuration), you can stick with hardcoding such things in said shell script. -- Will Andrews GCS/E/S @d- s+:+>+:- a--->+++ C++ UB++++ P+ L- E--- W+++ !N !o ?K w--- ?O M+ V-- PS+ PE++ Y+ PGP+>+++ t++ 5 X++ R+ tv+ b++>++++ DI+++ D+ G++>+++ e->++++ h! r-->+++ y? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message