*BSD News Article 99190


Return to BSD News archive

Newsgroups: comp.unix.bsd.freebsd.misc
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.netspace.net.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!ix.netcom.com!netcom.com.nojunkemailplease.com!not-for-email
From: nobody@not.for.email (Timothy J. Lee)
Subject: Re: User PPP (iijppp) and routing
Message-ID: <timleeECzGL5.6Ms@netcom.com>
Followup-To: comp.unix.bsd.freebsd.misc
Sender: timlee@netcom12.netcom.com
Reply-To: see-signature-for-email-address---ads-not-welcome
References: <timleeECwzr4.8tL@netcom.com> <8igqp5.rqd.ln@shift.utell.net>
Date: Tue, 8 Jul 1997 04:31:53 GMT
Lines: 66
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:44083

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.

|                              Have you specified your target
|(maybe guessed) IP number in ppp.conf on the command line ?
|
| set ifaddr 10.10.10.10/0 10.10.11.11/0
| add 0 0 10.10.11.11

In .ppp.conf in the appropriate section, I have this set ifaddr line:

 set ifaddr 10.0.0.2/0 xxx.xxx.xxx.57/0 255.255.255.0 

|The HISADDR bit in the old docs is bogus.  HISADDR is only available
|in ppp.linkup.

I have this in .ppp.linkup:

MYADDR:
 delete ALL
 add 0 0 HISADDR

-- 
------------------------------------------------------------------------
Timothy J. Lee                                                   timlee@
Unsolicited bulk or commercial email is not welcome.             netcom.com
No warranty of any kind is provided with this message.