*BSD News Article 99591


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.Hawaii.Edu!news.caldera.com!enews.sgi.com!news-feed.inet.tele.dk!feed.news.xara.net!xara.net!dispatch.news.demon.net!demon!awfulhak.demon.co.uk!shift.lan.awfulhak.org!nobody
From: brian@shift.lan.awfulhak.org (Brian Somers)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: User PPP (iijppp) and routing
Date: Mon, 14 Jul 1997 01:45:23 +0100
Organization: Awfulhak Ltd.
Message-ID: <3rsbq5.fud.ln@shift.lan.awfulhak.org>
References: <timleeED1Dwo.MF6@netcom.com> <14qvp5.052.ln@shift.utell.net>
    <timleeED346L.L9H@netcom.com>
Reply-To: brian@awfulhak.org, brian@utell.co.uk
NNTP-Posting-Host: shift.lan.awfulhak.org
X-NNTP-Posting-Host: awfulhak.demon.co.uk [158.152.17.1]
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.8
Lines: 44
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:44368

In article <timleeED346L.L9H@netcom.com>,
	nobody@not.for.email (Timothy J. Lee) writes:
> brian@awfulhak.org, brian@utell.co.uk writes:
>|>|> default            xxx.xxx.xxx.57     UGSc        0        0      tun0
>|>|> 10.0.0.2           10.0.0.2           UH          0       10       lo0
>|>|> 127.0.0.1          127.0.0.1          UH          0       14       lo0
>|>|> xxx.xxx.xxx.57     xxx.xxx.xxx.81     UH          1        0      tun0
[.....]
>|>|Ok, so this says that you're xxx.xxx.xxx.81 and the other side is
>|>|xxx.xxx.xxx.57.
[.....]
>|If telnet 127.0.0.1 doesn't work, it's not a ppp problem.  Let me
>|guess, your DNS doesn't work.  This is a common cause of telnet
>|connection delays.  It eventually connects, but it takes a while.
> 
> If I wait long enough, I get "Trying xxx.xxx.xxx.81...", etc.  I can
> successfully ping 127.0.0.1, but not xxx.xxx.xxx.81 or xxx.xxx.xxx.57,
> after ppp connects.

xxx.xxx.xxx.57 should have no problems.  If you can ping anything, you
should be able to ping that.  Try removing your third "set ifaddr"
argument (the netmask).

xxx.xxx.xxx.81 isn't reachable because you havn't got a route to it
(I know this sounds odd).  Only things down the left hand side of
your routing table are used, so when the ping for xxx.xxx.xxx.81 is
sent, it goes down the xxx.xxx.xxx.57 route with a source *AND*
dest IP of xxx.xxx.xxx.81.

To fix this, add a loopback route:

In ppp.linkup:
add MYADDR 255.255.255.255 127.0.0.1

In ppp.linkdown:
delete MYADDR

You'll need http://www.freebsd.org/~brian/ppp-2.2-970701.tar.gz
for this to work.

-- 
Brian <brian@awfulhak.org> <brian@freebsd.org>
      <http://www.awfulhak.org>
Don't _EVER_ lose your sense of humour !