From owner-freebsd-mobile Mon Oct 27 13:06:46 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id NAA26343 for mobile-outgoing; Mon, 27 Oct 1997 13:06:46 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id NAA26335 for ; Mon, 27 Oct 1997 13:06:41 -0800 (PST) (envelope-from imp@village.org) Received: from harmony [10.0.0.6] by rover.village.org with esmtp (Exim 1.71 #1) id 0xPwMr-0003DT-00; Mon, 27 Oct 1997 14:06:33 -0700 Received: from harmony.village.org (localhost [127.0.0.1]) by harmony.village.org (8.8.7/8.8.3) with ESMTP id OAA05353; Mon, 27 Oct 1997 14:06:04 -0700 (MST) Message-Id: <199710272106.OAA05353@harmony.village.org> To: Poul-Henning Kamp Subject: Re: How do you solve... Cc: freebsd-mobile@freebsd.org In-reply-to: Your message of "Mon, 27 Oct 1997 19:29:23 +0100." <1548.877976963@critter.freebsd.dk> References: <1548.877976963@critter.freebsd.dk> Date: Mon, 27 Oct 1997 14:06:04 -0700 From: Warner Losh Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In message <1548.877976963@critter.freebsd.dk> Poul-Henning Kamp writes: : 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. So you type "home" and then plug the ethernet card in when you get home in the evenings? Then /etc/pccard.ether does its magic, no? I was thinking of doing DHCP or even a simple ifconfig ping home-host failure -> ifconfig ping work-host failure -> loop a reasonable number of times, then prompt with a Tk program or something like that. And then once I know where I am, I can wonk resolv.conf, et al to do the right thing. Any gotchas on changing IP address of an interface on the fly on FreeBSD? I wouldn't think so. Warner