*BSD News Article 89174


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!metro!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!serv.hinet.net!news.uoregon.edu!xmission!s_leigh.dtint.com!user
From: seth.leigh@dtint.com (Seth Leigh)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Some PPP and Routing Problems
Date: Mon, 10 Feb 1997 13:32:00 -0800
Organization: Digital Technology International, Inc.
Lines: 89
Message-ID: <seth.leigh-1002971332000001@s_leigh.dtint.com>
NNTP-Posting-Host: itchy.itsnet.com
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:35444

Hi all.

I too have fought long and hard, and thought I was finally set up with PPP
on-demand running.  But now there are problems I just can't understand.

Info:
Running FreeBSD 2.2 BETA (I think, although somewhere I also saw 2.2 alpha
in there, so I am not sure...)

Cyrix P166+ cpu, 16 MB RAM, 1.6 gig IDE, etc.
I am hooked to a Macintosh IIsi via an NE-2000 compatible ethernet card
(running a thin wire coax to the Mac).

I finally got the ppp.conf file set up properly (I think) and had the call
to to set up in my rc.local file.  I also had the sysconfig file set up
properly, or so I believe.  For a couple days it would actually dial up
and all.  But, I had been using some IP addresses for the ethernet device
of the FreeBSD box and the Mac that were real IP addresses (not registered
to me though), and I wanted to go in and change them so I used addresses
that would never be used.  I went in and changed the following files:

/etc/sysconfig
/etc/hosts

Now I have several problems.  Worst of which is that I didn't backup this
files before dorking around with them, and I can't remember EXACTLY how
they were set up when things _seemed_ to be working.

I am using packet aliasing so that my Mac can connect to the internet
through the FreeBSD machine as well as the FreeBSD machine can.


One problem I have noticed is that there is essentially NO documentation
for how to set up the user-mode ppp program and the routing lines in the
sysconfig files, when the user needs to do dial-on-demand ppp connection,
renegotiating IP addresses with each connection, using packet aliasing,
AND routing between the FreeBSD and (at least one) another machine on a
local ethernet.  I spent a lot of time reading the man pages and example
files, and interpolating between the info that was available in one file
for setting things up with static IP addresses, info in another file on
setting other things up with non-static addresses, etc.  I would be most
glad to help write up some helpful documentation on how this is all done
once I am sure that things are working perfectly on my own machine.


Anyways, the problem I was fighting with this morning, before I finally
had to leave for work, was that the modem would in fact dial up and make a
connection, but I could do nothing with names.  I could telnet to the
FreeBSD machine from my Mac using the IP address I assigned to the
ethernet device (192.168.0.1), but not the host name of the FreeBSD
machine.  I could ping the Mac from the FreeBSD machine by using the IP
address I assigned to it from the unused range (specifically,
192.168.0.2), but not the host name I assigned to it in the /etc/hosts
file.  I could ping my ISP's machine using its IP address, but not its
domain name.  In short, nothing could be done using names.  What could be
causing this?  I also noticed that when I rebooted, along with the other
messages that I see, I have been seeing a message like this:
"routed[63]  sendmail(ed1, 224.0.0.2) no route to host"
I don't know if I quoted it exactly the same, but dang close.  I grepped
my whole dang system for "224.0.0.2" and it exists in no file anywhere on
my system.  What is it, and what does this message mean?

Also, when I finally do get all this crap working again, does anybody know
how to get the routed program to stop putting three error messages up on
the console everytime the ppp makes a connection?  It puts up three
messages, which include something like "can't assign IP address", "address
already in use", and something else I can't remember.  But, despite the
three error messages, everything seemed to work a couple days ago.  Why do
I get three error messages if it works?  Or, maybe the question should be
rephrased: why did it work despite the three error messages?

Anyways, if anybody can be so kind as to give me a good idea on how to
understand the exact relationship between the /etc/sysconfig file, the
/etc/hosts file, the hostname of the FreeBSD machine, the ppp.conf file,
etc., I would be much obliged.


Oh yeah, even when I did think everything was working the other day, I
couldn't telnet from the Mac to the Unix machine (over the local ethernet
I put between them) unless the ppp could successfully make a connection
over the modem.  Why should telnetting to the FreeBSD locally cause ppp to
dial up?  I was telnetting to the host name of the FreeBSD machine.

Seth Leigh

-- 
J. Seth Leigh                          seth.leigh@dtint.com
Digital Technology Int.               (801)226-2984
500 W. 1200 South, Orem UT, 84057     FAX (801) 226-8438