*BSD News Article 99281


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.cis.okstate.edu!nntp.ksu.edu!newsfeeder.gi.net!mr.net!netnews.com!howland.erols.net!rill.news.pipex.net!pipex!tank.news.pipex.net!pipex!news.utell.co.uk!shift.utell.net!nobody
From: brian@shift.utell.net (Brian Somers)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: User PPP (iijppp) and routing
Date: Wed, 9 Jul 1997 11:45:21 +0100
Organization: Awfulhak Ltd.
Lines: 76
Message-ID: <14qvp5.052.ln@shift.utell.net>
References: <timleeECzGL5.6Ms@netcom.com> <c4ltp5.jm1.ln@shift.utell.net>
    <timleeED1Dwo.MF6@netcom.com>
Reply-To: brian@awfulhak.org, brian@utell.co.uk
NNTP-Posting-Host: shift.utell.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.8
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:44155

In article <timleeED1Dwo.MF6@netcom.com>,
	nobody@not.for.email (Timothy J. Lee) writes:
> brian@awfulhak.org, brian@utell.co.uk writes:
>|In article <timleeECzGL5.6Ms@netcom.com>,
>|	nobody@not.for.email (Timothy J. Lee) writes:
>|> brian@awfulhak.org, brian@utell.co.uk writes:
>|>|What does "netstat -rn" say ?
>|> 
>|> Before using ppp:
>|> 
>|> Routing tables
>|> 
>|> Internet:
>|> Destination        Gateway            Flags     Refs     Use     Netif Expire
>|> 10.0.0.2           10.0.0.2           UH          0       10       lo0
>|> 127.0.0.1          127.0.0.1          UH          0       14       lo0
>|> 
>|> After connecting with ppp:
>|> 
>|> Routing tables
>|> 
>|> Internet:
>|> Destination        Gateway            Flags     Refs     Use     Netif Expire
>|> 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
>|> 
>|> where xxx.xxx.xxx.57 is a SunOS 4.1.3 machine running pppd at the other
>|> end, and xxx.xxx.xxx.81 is the IP address assigned by the other end to
>|> the FreeBSD 2.2.1 machine.  I cannot get to anything on xxx.xxx.xxx,
>|> including xxx.xxx.xxx.81, after connecting with ppp.
>|[.....]
>|
>|Ok, so this says that you're xxx.xxx.xxx.81 and the other side is
>|xxx.xxx.xxx.57.
>|
>|Is xxx.xxx.xxx.57 not the "IP address of the remote host" (from your
>|original question) ?  telnet xxx.xxx.xxx.57 should work ok.
> 
> It does not work.  Neither do "telnet xxx.xxx.xxx.81" or "telnet 127.0.0.1"
> or "telnet 10.0.0.2".

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.

> xxx.xxx.xxx.57 is the IP address of the remote host (the SunOS 4.1.3 machine
> running pppd).  BTW, others have done PPP connections to xxx.xxx.xxx.57 with
> PPP programs running on other OSes.
> 
>|As far as the local IP is concerned, you can't get
>|at xxx.xxx.xxx.81 without a line in ppp.linkup:
>|
>|add MYADDR 255.255.255.255 127.0.0.1
> 
> I added this line to $HOME/.ppp.linkup ; it had no effect.
> 
> Giving that line on the ppp command line appears to hang it (only kill -9
> will unhang it).
> 
>|I'm assuming you've got a recent ppp - there's one on
>|http://www.freebsd.org/~brian/ppp-2.2-970701.tar.gz.
>|The MYADDR stuff above won't work for FreeBSD <= 2.2.2.
> 
> I have FreeBSD 2.2.1 and the ppp program that came with the 2.2.1 CD
> distribution in "The Complete FreeBSD" book.

As I said (quoted 4 lines ago):

>|The MYADDR stuff above won't work for FreeBSD <= 2.2.2.

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