*BSD News Article 83383


Return to BSD News archive

#! rnews 3104 bsd
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!spool.mu.edu!uwm.edu!cs.utexas.edu!news.sprintlink.net!news-peer.sprintlink.net!howland.erols.net!feed1.news.erols.com!news
From: Ken Bigelow <kbigelow@www.play-hookey.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Two devices with same IP
Date: Thu, 21 Nov 1996 18:44:52 +0000
Organization: Erol's Internet Services
Lines: 56
Message-ID: <3294A324.902@www.play-hookey.com>
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>
Reply-To: kbigelow@www.play-hookey.com
NNTP-Posting-Host: kenjb05.play-hookey.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0 (Win16; U)
To: rnestor@metronet.com, rnestor@ti.com

Bob Nestor wrote:
> 
> In article <32920988.63E7@www.play-hookey.com>, kbigelow@www.play-hookey.com
> says...
> >
> >Brian Somers wrote:
> >>
> >> In article <328EF58B.16E4@www.play-hookey.com>,
> >>         Ken Bigelow <kbigelow@www.play-hookey.com> writes:
> >> : I have no problem with that. My gateway/mailserver/Webserver/etc. is
> >> : running FreeBSD 2.1R. It uses a 33.6k modem for connection to my ISP,
> >> : and an NE2100 clone (lnc0) for my local network. Both ports have the
> >> : same IP address, and work fine with no trouble. Since they are both
> >> : attached to the same box, neither my ISP nor my local network (nor
> >> : anyone else) have any trouble indentifying this box as a unique node.
> 
> >>
> >> Of course this assumes that all but one of the interfaces have a netmask
> >> of 0xffffffff :)
> >>
> >
> >Sorry, brian, but no. From my /etc/sysconfig file:
> >
> >
> >network_interfaces="cuaa1 lnc0 lo0"
> >ifconfig_cuaa1="inet 206.161.179.129  netmask 255.255.255.224"
> >ifconfig_lnc0="inet 206.161.179.129  netmask 255.255.255.224  mtu 1006"
> >ifconfig_lo0="inet localhost"
> >
> 
> >Seems to still be working fine.
> 
> One should never assume that software (or a system configuration) is bug-free
> due to the absence of observable errors.  It might prove interesting to do
> some low-level traces and see what's really happening.

ifconfig -a shows both interfaces present, with ppp0 happily connected
to my ISP's port. netstat -i shows both interfaces happily coexisting,
with different numbers of Ipkts and Opkts, as appropriate.

My daughter can readily telnet to the server and use it from inside,
while I can telnet to it at the same time from outside. Or vice versa,
or whatever configuration, just as you would expect to see from a
multi-user, multi-tasking system. Or we can just use it as a gateway
either way, and that works fine, too.

We have been doing this for several months now. What error would you
expect to pop up now to cause a problem, and why hasn't it done so
already??? From observed behavior, if the system isn't bug-free, it's
doing a darn good imitation so far!
-- 
Ken

Are you interested in   |
byte-sized education    |   http://www.play-hookey.com
over the Internet?      |