*BSD News Article 83468


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!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.utell.net (Brian Somers)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Two devices with same IP
Date: 22 Nov 1996 14:59:01 -0000
Organization: Coverform Ltd.
Lines: 28
Sender: brian@awfulhak.demon.co.uk
Message-ID: <574f3l$2s4@anorak.utell.net>
References: <56ltqk$nhv@csugrad.cs.vt.edu> <56lvvc$62f$1@gail.ripco.com>
    <32920988.63E7@www.play-hookey.com> <571pde$mp8@sf18.dseg.ti.com>
    <nigel.20.0000C75A@znet.net.au>
Reply-To: brian%anorak.coverform.lan@awfulhak.demon.co.uk
NNTP-Posting-Host: anorak.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 <nigel.20.0000C75A@znet.net.au>,
	nigel@znet.net.au (Nigel Gorry) writes:
: 
: An ifconfig -a on my machine show that I have the same IP address for both my 
: NIC and PPP interfaces.  This works as a router with the default route being 
: via the remote side of the PPP link.
: 
: ed0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
:         inet 203.61.202.20 netmask 0xfffffff0 broadcast 203.61.202.31
: lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
:         inet 127.0.0.1 netmask 0xff000000
: tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
:         inet 203.61.202.20 --> 203.61.202.1 netmask 0xffffff00

I don't get this.  First, how come you're broadcasting on an address outside
of your network on ed0 ?  ed0's netmask says that the allowable range is
203.61.202.{16-23} !

If the above machine sends a packet to 203.61.202.{16-19,21-22} (assuming
that 203.61.202.16 is your net address and 203.61.202.23 is your *real*
broadcast address, how does your kernel know which of ed0 and tun0 to send
the packet ?

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