Message-ID: <389C94C0.B798DD70@crazylogic.net>
From: Matt Gostick <matt@crazylogic.net>
X-Mailer: Mozilla 4.7 [en] (Win98; I)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.minix
Subject: routing problem ?
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 69
Date: Sat, 05 Feb 2000 16:23:13 -0500
NNTP-Posting-Host: 206.217.37.2
X-Complaints-To: abuse@netcom.ca
X-Trace: tor-nn1.netcom.ca 949785757 206.217.37.2 (Sat, 05 Feb 2000 16:22:37 EDT)
NNTP-Posting-Date: Sat, 05 Feb 2000 16:22:37 EDT
Organization: Netcom Canada
Path: news.adfa.oz.au!clarion.carno.net.au!news0.optus.net.au!news1.optus.net.au!optus!news.ecn.ou.edu!newsfeed.berkeley.edu!news.maxwell.syr.edu!east1.newsfeed.sprint-canada.net!tor-nx1.netcom.ca!tor-nn1.netcom.ca.POSTED!not-for-mail
Xref: news.adfa.oz.au comp.os.minix:34673

I have my minix system at home almost working perfectly...  with the
exception of my network.

My network consists of 4 computers: 192.168.0.1 which is a FreeBSD box
acting as a router and DNS server; two other computers...; and the minix
machine which I am trying to setup as 192.168.0.4

The thing is...  I can ping 192.168.0.4 on the minix machine.  I can
ping 127.0.0.1 on the minix machine.  I cannot ping anything else...
including 'localhost'.

pr_routes displays:
DEST=0.0.0.0, NETMASK=0.0.0.0, GATEWAY=192.168.0.1, dist=1 pref=0 fixed

and ifconfig displays:
192.168.0.4
255.255.255.0

I'm pretty sure the problem lies in the fact that my routing table does
not have a route for anything but 0.0.0.0.  I tried adding a dest of
192.168.0.0 with netmask 255.255.255.0 and gateway of 192.168.0.4...
that didn't work.

The fact that it can't find localhost is kinda freaky too.  Do I need a
/etc/host.conf file telling dns to look in /etc/hosts before resolving
through dns?  Do I have to start nonamed as 'nonamed -n 192.168.0.1'?
Anything else?

The setup I have done on the minix machine is as follows:

---<rc>
....snip
if (</dev/eth </dev/tcp) 2>/dev/null
then
    # all other network stuff taken out of rc and put into rc.net
    . /etc/rc.net
fi
....snip

---<rc.net>
MYIP=192.168.0.4
MYNETMASK=255.255.255.0
MYGATEWAY=192.168.0.1
MYDNS=192.168.0.1

ifconfig -h $MYIP -n $MYNETMSAK -iv
add_route -g $MYGATEWAY

# error checking omitted
nonamed -n $MYDNS &
rshd &
rld &
telnetd &

---<resolv.conf>
domain fake.net
nameserver 192.168.0.1

---<hosts>
127.0.0.1    localhost
192.168.0.4    minix.fake.net

If anyone could help me out I would very much appretiate it.

Thanks,

--
Matt Gostick <matt@crazylogic.net>

