*BSD News Article 83033


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.mel.connect.com.au!esmeralda.access.net.au!news.netspace.net.au!news.mira.net.au!inquo!in-news.erinet.com!ddsw1!news.mcs.net!www.nntp.primenet.com!nntp.primenet.com!newsxfer2.itd.umich.edu!newsfeed.internetmci.com!news.webspan.net!usenet
From: gpalmer@webspan.net (Gary Palmer)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Two devices with same IP
Date: 17 Nov 1996 04:28:58 GMT
Organization: WebSpan Inc., New Jersey
Lines: 23
Sender: gpalmer@mutara.noc.webspan.net
Message-ID: <56m4aa$5n2@news.webspan.net>
References: <56ltqk$nhv@csugrad.cs.vt.edu> <56m3dr$j97@solaris.cc.vt.edu>
NNTP-Posting-Host: mutara.noc.webspan.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.8

In article <56m3dr$j97@solaris.cc.vt.edu>,
	Giao Nguyen <grail@cray-ymp.acm.stuorg.vt.edu> writes:
> This is significantly brain damaged. If the kernel got a packet, how would it
> resolve which device to route the packet to?

Easily.

> While I'm not sure how it is actually implemented, my only guess is
> that in order to have two devices with the same IP address, the
> resolution would have to be done with some sort of case
> statement. Wow, that's pretty obnoxious if you had some heavy duty
> network happening.

Considering the overhead involved in IP routing in the first place,
and the way point-to-point routing works (i.e. based on the address of
the remote end) it's not that difficult to allow SLIP & PPP interfaces
to share the IP of the ethernet card. Heck, Cisco routers have a
command called `ip unnumbered' which allows you to run all serial
links with the IP of the ethernet (or similar device). I've used this
in the past to build networks, but in certain cases it's not advisable
(esp. when you run into a bug :-) )

Gary