*BSD News Article 94892


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!rill.news.pipex.net!pipex!newsfeed.nacamar.de!nntp.uio.no!news.algonet.se!uab.ericsson.se!erinews.ericsson.se!news
From: Kent Boortz <kent@erlang.ericsson.se>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Laptop on multiple networks and PPP
Date: 01 May 1997 02:07:26 +0200
Organization: Ericsson Software Technology AB, Erlang Systems
Lines: 31
Message-ID: <d2vi54t5q9.fsf@erlang.ericsson.se>
NNTP-Posting-Host: townsend.ericsson.se
X-Newsreader: Gnus v5.3/Emacs 19.34
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:40084



I have a laptop with a PCMCIA ethernet card running FreeBSD .  As an
consultant I move around and I use this laptop plugged in to two
different local networks and also with PPP to one of the nets. I have
statically assigned IP numbers.

If I configure the ethernet card so I can plug it in at location 1 I
have problems when I phone up with PPP. "ifconfig -a" show the same IP
address on the "tun0" interface as on the ethernet card. It didn't
work (maybe obvious to you but it took me a while to figure out ;-)
So I did a "ifconfig ed0 delete" before I phoned up and PPP worked. Is
there a more "automatic" way? Maybe configure PPP to "take over" the
IP number?

Now I move the machine to location 2 where I have a different static
IP number, another DNS etc. How do I solve this? I just read that
the same ethernet card can have multiple IP addresses using "ifconfig".
Is this enough? Is routing a problem? Routing is still a bit of magic
to me.

I could of cause log in as root every time I move and run a script to
reconfigure the hardware but there has to be a better way.

Sorry if you feel this is a FAQ, if so please point me in the right
direction. I have searched around and didn't find an answer to this.

If this is not possible another solution would be a boot option
to load a totally different set of configuration files. Hmm...
maybe multiple root partitions?

/kgb