From owner-freebsd-questions Tue May 8 7:50:31 2001 Delivered-To: freebsd-questions@freebsd.org Received: from clientmail.realtime.co.uk (simian.realtime.co.uk [194.205.134.131]) by hub.freebsd.org (Postfix) with ESMTP id C3DF037B424; Tue, 8 May 2001 07:50:26 -0700 (PDT) (envelope-from waynep@zaphod.realtime.co.uk) Received: from zaphod.realtime.co.uk ([194.205.134.208]) by clientmail.realtime.co.uk with esmtp (Exim 3.20 #1) id 14x8oj-0001lp-01; Tue, 08 May 2001 15:50:25 +0100 Received: from waynep by zaphod.realtime.co.uk with local (Exim 3.20 #1) id 14x8oj-0002jr-00; Tue, 08 May 2001 15:50:25 +0100 From: Wayne Pascoe To: freebsd-questions@freebsd.org Cc: freebsd-mobile@freebsd.org Subject: Laptop on 2 networks - solutions ? Reply-To: wayne.pascoe@realtime.co.uk Date: 08 May 2001 15:50:24 +0100 Message-ID: Lines: 30 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 :) -- - Wayne Pascoe E-mail: wayne.pascoe@realtime.co.uk Phone : +44 (0) 20 7544 4668 Mobile: +44 (0) 788 431 1675 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message