*BSD News Article 97638


Return to BSD News archive

#! rnews 1950 bsd
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.Hawaii.Edu!news.uoregon.edu!tezcat!feed1.news.erols.com!newsfeed.internetmci.com!newsfeeder.servtech.com!post.servtech.com!not-for-mail
From: shawn carey <smc@servtech.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: routing to self via localhost?
Date: Thu, 12 Jun 1997 23:45:13 -0400
Organization: ServiceTech, Inc.
Lines: 32
Message-ID: <33A0C249.41C67EA6@servtech.com>
NNTP-Posting-Host: boulder.syr.servtech.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.01 (X11; I; FreeBSD 2.2.2-RELEASE i386)
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:42832

Hello,

I have a FreeBSD 2.2.2 system with no hardware network intefaces that I
need to get CDE running on.  CDE requires that the system be able to
communicate (even to itself) via the network.

My first attempt was to add a route from the system's IP address to the
loopback inetrface:

% route add 192.168.1.1 127.0.0.1

But packets do not make it to localhost, or at least localhost does not
recognize these packets as something it needs to worry about.  This
makes some amount of sense to me, however it doesn't help my situation
much, and from what I can gather I have three possible solutions, all of
which feel like they're in poor networking "taste" to me.

1) I can add a second loopback interface and ifconfig lo1 inet
192.168.1.1
2) I can specify the system's IP address as an alias on the loopback
interface.
3) I can put the system's hostname on the same line as localhost in
/etc/hosts.

I am fairly comfortable with UNIX networking, but I have never before
needed to network a system to itself without having at least one
hardware inteface to hang an IP address from.  Some kind soul please
save me from putting a NIC in this machine and tell me what is the right
way to do this?

Thanks,
-Shawn Carey