*BSD News Article 84116


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!news.ececs.uc.edu!news.kei.com!news.mathworks.com!EU.net!usenet2.news.uk.psi.net!uknet!usenet1.news.uk.psi.net!uknet!dispatch.news.demon.net!demon!awfulhak.demon.co.uk!awfulhak.demon.co.uk!awfulhak.demon.co.uk!not-for-mail
From: brian@anorak.coverform.lan (Brian Somers)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: ip aliasing with dynamic ppp
Date: 3 Dec 1996 01:50:39 -0000
Organization: Coverform Ltd.
Lines: 34
Sender: brian@awfulhak.demon.co.uk
Message-ID: <58011f$2u4@anorak.coverform.lan>
References: <32a1a1b2.253930@nntpserver.swip.net>
Reply-To: brian%anorak.coverform.lan@awfulhak.demon.co.uk
NNTP-Posting-Host: localhost.coverform.lan
X-NNTP-Posting-Host: awfulhak.demon.co.uk
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.8

In article <32a1a1b2.253930@nntpserver.swip.net>,
	jonathan@environ.se writes:
: I bet it's not possible to use ip aliasing with dialup dynamic ip
: otherwise everyone would be doing it. 
: 
: I've been trying to do this anyway:
: ifconfig tun0 alias <fake address not used in our subnet> <dynamic ip>
: ifconfig tun0 alias <same dynamic ip> <gateway>
: 
: I can then telnet to both addresses but the alias address is probably
: not broadcasted properly (I don't have another computer to test it
: from at the moment).
: 
: BTW, when I run user ppp without playing with ifconfig I get my
: dynamic ip aliased to my gateway. Why is that? Is ifconfig performing
: the same function as "route add" or something?
: 
: Anyone care to give me a hand?

The first ifconfig (without "alias") will config the interface to
accept & send stuff using that IP - and will put an entry in the routing
table with a destination & gateway address as that IP (if you've got a
point-to-point type interface, the dest & gateway will be the appropriate
*different* values as per the ifconfig args).

Subsequent ifconfig alias calls will tell the interface to accept
packets for the given alias IP, but will not AFAIK allow you to initiate
outgoing connections using the alias IP - including broadcasts.

-- 
Brian <brian%anorak.coverform.lan@awfulhak.demon.co.uk>
      <http://www.awfulhak.demon.co.uk/>
Don't _EVER_ lose your sense of humour....
.