From owner-freebsd-mobile Mon Feb 2 15:38:04 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA07873 for freebsd-mobile-outgoing; Mon, 2 Feb 1998 15:38:04 -0800 (PST) (envelope-from owner-freebsd-mobile@FreeBSD.ORG) Received: from daneel.cs.twsu.edu (root@daneel.cs.twsu.edu [156.26.10.47]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA07813 for ; Mon, 2 Feb 1998 15:38:01 -0800 (PST) (envelope-from jgoerzen@gesundheit.cs.twsu.edu) Received: from gesundheit.cs.twsu.edu (jgoerzen@gesundheit.cs.twsu.edu [156.26.10.195]) by daneel.cs.twsu.edu (8.8.5/8.8.5) with SMTP id RAA05888 for ; Mon, 2 Feb 1998 17:37:55 -0600 Date: Mon, 2 Feb 1998 17:37:55 -0600 (CST) From: John Goerzen To: freebsd-mobile@FreeBSD.ORG Subject: Changing networks frequently Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org X-To-Unsubscribe: mail to majordomo@FreeBSD.org "unsubscribe freebsd-mobile" [ Note: please send me a CC of any reply; I am not yet subscribed to this list. ] Hello, I have what I hope is a simple question. I have an IBM Thinkpad 310ED (P133MMX) and have put FreeBSD 2.2.5 release on it (works great; see below). I also have a Linksys PCMCIA ethernet "combo" card (does 10baseT and 10base2). I will be using this machine in at least two different network environments (different IP address, netmask, nameservers, routers, etc.). I have allocated an IP and hostname for the laptop in each environment. To make things trickier, one of the networks (let's call it network A) sits behind a firewall. So, my question is: How do I easily reconfigure the laptop when switching between these networks? One thing I considered was to tar up all the configs for each network and just untar the stuff into the root directory. But that doesn't quite take care of everything. The most tricky thing seems to be sendmail. I am having a heck of a time making it behave. My situation is this: I only want to send mail out on network A. So I set the warn time to 7 days and the bounce time to 14 days on the laptop -- should be plenty of time to let me connect to network A and run sendmail -q. But -- network A is behind a firewall, and the hostname of the smart host there is not resolvable anywhere else. When I am on network B, sendmail quickly bounces all the messages that are queued up, claiming that the smart host doesn't exist because it couldn't look up its name. This is a rather puzzling thing and I'm not quite sure what to do about it. (When not connected to any network, it deferrs the message with a "no route to host" indication, which is very good. I just hook it up and run sendmail -q to send the stuff.) Thanks, John