From owner-freebsd-mobile Tue Oct 28 04:59:22 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id EAA21002 for mobile-outgoing; Tue, 28 Oct 1997 04:59:22 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from out1.ibm.net (out1.ibm.net [165.87.194.252]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id EAA20997 for ; Tue, 28 Oct 1997 04:59:19 -0800 (PST) (envelope-from SimsS@IBM.Net) Received: from Elvis.RatsNest.VaBeach.Va.Us (slip166-72-229-120.va.us.ibm.net [166.72.229.120]) by out1.ibm.net (8.8.5/8.6.9) with SMTP id MAA77874; Tue, 28 Oct 1997 12:58:13 GMT Received: by localhost with Microsoft MAPI; Tue, 28 Oct 1997 07:58:11 -0500 Message-ID: <01BCE377.3C374600.SimsS@IBM.Net> From: Steve Sims Reply-To: "SimsS@IBM.Net" To: "'Simon Marlow'" Cc: "'freebsd-mobile@freebsd.org'" Subject: RE: How do you solve... Date: Tue, 28 Oct 1997 07:58:09 -0500 X-Mailer: Microsoft Internet E-mail/MAPI - 8.0.0.4128 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk ooooOOOOOoooo! Can I see? Can I see? I've got a kind of strange situation that this approach might solve: At home, my laptop plugs into the net & DHSP weaves its magic. At work, DHCP provides the IP address, but many static routes must be configured (currently, by hand :-( Thanks! ...sjs... On Tuesday, October 28, 1997 6:11 AM, Simon Marlow [SMTP:simonm@dcs.gla.ac.uk] wrote: > Poul-Henning Kamp writes: > > > >I take it back and forth between home and work. I'd like it to have > > >different IP numbers at the two location. I'd love for this to be > > >completely automatic. Any chance of that happening? Is DHCP what I > > >want to use? > > > > I have two small aliases that > > > > home (rm -f /var/tmp/@work) > > work (touch /var/tmp/@work) > > > > my /etc/pccard.ether (or whatever it is called today) looks for > > this file and decideds which IP to configure. Works great. > > Alternatively, you can try to do it automatically: my pccard_ether > tries each possible ifconfig in turn, pinging a known address to find > out where it is. When a successful ping happens, it continues to > configure the system appropriately for the location. Admittedly, this > is a hack, but it works fine. > > Cheers, > Simon > > -- > Simon Marlow simonm@dcs.gla.ac.uk > University of Glasgow http://www.dcs.gla.ac.uk/~simonm/ > finger for PGP public key >