Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.telstra.net!nsw.news.telstra.net!news.syd.connect.com.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.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: Tue, 8 Jul 1997 16:07:56 +0100
Organization: Awfulhak Ltd.
Lines: 66
Message-ID: <c4ltp5.jm1.ln@shift.utell.net>
References: <timleeECwzr4.8tL@netcom.com> <8igqp5.rqd.ln@shift.utell.net>
<timleeECzGL5.6Ms@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:44121
In article <timleeECzGL5.6Ms@netcom.com>,
nobody@not.for.email (Timothy J. Lee) writes:
> brian@awfulhak.org, brian@utell.co.uk writes:
>|In article <timleeECwzr4.8tL@netcom.com>,
>| timlee@netcom.com (Timothy J. Lee) writes:
>|> With FreeBSD 2.2.1, I configured and used the user PPP (iijppp)
>|> according to the on line handbook and ppp man page. I can get a PPP
>|> connection and an IP address from the remote host (a SunOS 4.1.3
>|> machine with pppd), and "show ipcp" shows the expected IP addresses.
>|> "show route" does not give a route to either the IP assigned by the
>|> remote host, or the IP address of the remote host. This means that
>|> attempts to telnet the remote host's IP address or others it is
>|> connected to fail.
>|>
>|> What else needs to be done to get the routing across the PPP connection
>|> to work properly?
>|
>|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.
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
(You should also have "delete MYADDR" in ppp.linkdown).
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.
--
Brian <brian@awfulhak.org> <brian@freebsd.org>
<http://www.awfulhak.org>
Don't _EVER_ lose your sense of humour !