From owner-freebsd-questions Wed Jul 30 20:34:52 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id UAA28161 for questions-outgoing; Wed, 30 Jul 1997 20:34:52 -0700 (PDT) Received: from iquest3.iquest.net (iquest3.iquest.net [209.43.20.203]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id UAA28156 for ; Wed, 30 Jul 1997 20:34:47 -0700 (PDT) Received: (qmail 3099 invoked from network); 31 Jul 1997 03:34:35 -0000 Received: from glider.iquest.net (HELO drifter.iquest.net) (198.70.144.56) by iquest3.iquest.net with SMTP; 31 Jul 1997 03:34:35 -0000 Message-ID: <33E007CD.41C67EA6@iquest.net> Date: Wed, 30 Jul 1997 22:34:37 -0500 From: Jerry Kelley X-Mailer: Mozilla 3.01Gold (X11; I; FreeBSD 2.1.5-RELEASE i386) MIME-Version: 1.0 To: freebsd-questions Subject: Changing network identities on the fly Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I currently have two PPP connections that I make: one to work; and one to my ISP. Now, my system spends more time connected to my ISP than to work so I initially configured it to use the hostname used in my ISP link. I'm also running routed and have an entry in /etc/resolv.conf to point to my ISP's name server. The obvious question that I'm coming to is this: is there a "good" or clean way to go back and forth between network identities? I'm using user-mode ppp and have entries for work and my ISP. I can easily enough run 'ppp {work | isp}' and connect. The real tricky part comes in when I want to set up the network daemons on the fly and change things like the routing table and so on. I realize that I could write a script to go through and make all the changes as needed and start ppp with the proper destination. However, before I start down that path I'd like to know if anyone else has experienced this schizophrenic (sp) situation and how they went about handling it. Thanks in advance, Sybil. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Jerry Kelley jerryk@iquest.net "Expectations are life's greatest dangers."