From owner-freebsd-mobile Tue Mar 21 21:35:48 2000 Delivered-To: freebsd-mobile@freebsd.org Received: from gta.com (gw.gta.com [199.120.225.5]) by hub.freebsd.org (Postfix) with ESMTP id 4302737C086 for ; Tue, 21 Mar 2000 21:35:46 -0800 (PST) (envelope-from lab@gta.com) Received: from gta.com (GTA internal mail system) by gta.com id AAA45046; Wed, 22 Mar 2000 00:41:19 -0500 (EST) Date: Wed, 22 Mar 2000 00:41:19 -0500 (EST) Message-Id: <200003220541.AAA45046@gta.com> From: Larry Baird To: freebsd-mobile@freebsd.org Subject: Re: switching between connected/disconnected operation? User-Agent: tin/1.4.2-20000205 ("Possession") (UNIX) (FreeBSD/3.4-STABLE (i386)) Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > 1) Ethernet on 192.168.x.0 LAN in my apartment > 2) Ethernet on 192.168.y.0 LAN in my office > 3) Dial-in, PPP, to the registered net in the office All three of the above are variations on the same theme. What I do for 1 and 2 is that I: 1) Use the office IP 192.168.y.0 has my primary number. 2) Add an IP alias of 192.168.x.0. When I move between locations it becomes a simple job of changing the default route and resolv.conf. I do this by hand, but it wouldn't take more than a few lines of shell script to semi-automate it. I havn't done much playing with step three. The PPP connection can I believe also change the default route and resolv.conf for you at startup. I havn't had to worry about the not on net case. Maybe somebody else has a nifty idea for this one. Larry -- ------------------------------------------------------------------------ Larry Baird | http://www.gnatbox.com Global Technology Associates, Inc. | Orlando, FL Email: lab@gta.com | TEL 407-380-0220, FAX 407-380-6080 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message