From owner-freebsd-questions Tue May 8 9:16:27 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailb.telia.com (mailb.telia.com [194.22.194.6]) by hub.freebsd.org (Postfix) with ESMTP id 606DD37B424; Tue, 8 May 2001 09:16:15 -0700 (PDT) (envelope-from jorgen@telia.net) Received: from mailbox.telia.net (mailbox.telia.net [194.237.170.234]) by mailb.telia.com (8.9.3/8.9.3) with ESMTP id SAA25805; Tue, 8 May 2001 18:16:14 +0200 (CEST) Received: from TUK000615.telia.net (gw.teliauk.com [195.12.224.66]) by mailbox.telia.net (8.8.8/8.8.8) with ESMTP id SAA04624; Tue, 8 May 2001 18:16:12 +0200 (CEST) Message-Id: <5.0.2.1.0.20010508171149.02309a08@mailbox.telia.net> X-Sender: jorgen@mailbox.telia.net X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Tue, 08 May 2001 17:16:41 +0100 To: freebsd-questions@FreeBSD.ORG From: =?iso-8859-1?Q?J=F6rgen?= I Larsson Subject: Re: Laptop on 2 networks - solutions ? Cc: freebsd-mobile@FreeBSD.ORG In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; format=flowed Content-Transfer-Encoding: quoted-printable Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 15:50 08/05/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 :) I have a script for each network I connect to that looks like this #! /bin/sh echo Subject: Setting up T21 for the XXX network /sbin/ifconfig an0 down /sbin/ifconfig an0 x.x.x.x netmask y.y.y.y /usr/sbin/ancontrol -i an0 -n SSID /sbin/route flush /sbin/route add default x.x.x.y >-- >- 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-mobile" in the body of the message -------------------------------------------------------------- J=F6rgen I Larsson IP Network Manager Telia UK 4th floor Holborn Gate 330 High Holborn London WC1V 7QY UK mailto:jorgen@telia.net Phone: +44 20 7870 5266 Mobile: +44 7788 186 302 ---------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message