Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 08 May 2001 17:16:41 +0100
From:      =?iso-8859-1?Q?J=F6rgen?= I Larsson <jorgen@telia.net>
To:        freebsd-questions@FreeBSD.ORG
Cc:        freebsd-mobile@FreeBSD.ORG
Subject:   Re: Laptop on 2 networks - solutions ?
Message-ID:  <5.0.2.1.0.20010508171149.02309a08@mailbox.telia.net>
In-Reply-To: <m1ae4ngaj3.fsf@zaphod.realtime.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
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-mobile" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.0.2.1.0.20010508171149.02309a08>