From owner-freebsd-mobile Tue May 8 7:52: 0 2001 Delivered-To: freebsd-mobile@freebsd.org Received: from jah.cs.unm.edu (mail.cs.unm.edu [64.106.20.33]) by hub.freebsd.org (Postfix) with ESMTP id B96B537B422; Tue, 8 May 2001 07:51:53 -0700 (PDT) (envelope-from colinj@cs.unm.edu) Received: from underground.cs.unm.edu ([64.106.21.103] ident=mail) by jah.cs.unm.edu with esmtp (Exim 3.12 #1) id 14x8q5-0001Q7-00; Tue, 08 May 2001 08:51:49 -0600 Received: from colinj (helo=localhost) by underground.cs.unm.edu with local-esmtp (Exim 3.12 #1 (Debian)) id 14x8q4-0005wG-00; Tue, 08 May 2001 08:51:48 -0600 Date: Tue, 8 May 2001 08:51:47 -0600 (MDT) From: Colin Eric Johnson To: Wayne Pascoe Cc: freebsd-questions@freebsd.org, freebsd-mobile@freebsd.org Subject: Re: Laptop on 2 networks - solutions ? In-Reply-To: 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 On 8 May 2001, Wayne Pascoe wrote: > Hi all, > > I would be interested in hearing of solutions from people who use a > laptop on two different systems. > > I use my laptop at home (192.168.1.0/24) and at work > (192.168.2.0/24). At the moment, in /etc I have rc.conf.home and > rc.conf.work. Each of these has IP configs for the correct network. I > also have resolv.conf.home and resolv.conf.work. > > I have a script that copies the appropriate conf files into place, and > then I reboot. > > This all seems far more clumsy than needs be. Is there any better > solution than this out there? > > Also, I note that if I have fxp0 set to my home address and add an > alias to fxp0 of my work address, I am able to ping machines in my > work network. All I then have to do is change my gateway, as it seems > I can't have two routes for 0.0.0.0/0 (error message : > route: writing to routing socket: File exists > add net 0.0.0.0 gateway 192.168.1.30: File exists) > > Any tips on this would be great! Thanks :) Is using DHCP out of the question? That would allow you to not have to worry about this at all. Colin E. Johnson | colinj@unm.edu | http://www.unm.edu/~colinj/ A complete breakfast with juice, toast and milk To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message