Date: Tue, 8 May 2001 08:51:47 -0600 (MDT) From: Colin Eric Johnson <colinj@cs.unm.edu> To: Wayne Pascoe <wayne.pascoe@realtime.co.uk> Cc: freebsd-questions@freebsd.org, freebsd-mobile@freebsd.org Subject: Re: Laptop on 2 networks - solutions ? Message-ID: <Pine.LNX.4.21.0105080851150.5323-100000@underground.cs.unm.edu> In-Reply-To: <m1ae4ngaj3.fsf@zaphod.realtime.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
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-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.21.0105080851150.5323-100000>