[2212] in linux-net channel archive

home help back first fref pref prev next nref lref last post

Re: PPP routing

daemon@ATHENA.MIT.EDU (ATPlack@scj.com)
Fri Mar 22 12:31:05 1996

From: ATPlack@scj.com
Date: 	22 Mar 96 11:12:40 -0600
To: jong@ssc.com
Cc: linux-net@vger.rutgers.edu, linux-ppp@vger.rutgers.edu


The problem was resolved last night, however, I am concerned about the 
solution.

In logging into the Shiva box,  I was using CHAT to login with the userid 
and password.  Shiva supports a terminal mode access at this point.  I was 
under the belief that I needed to access this, since this terminal mode was 
the only place I saw to enable PPP.  In fact, PPP is an command to be used 
here.  I was under this assumption based on the PPP HowTo.

When I looked at the Shiva connection, I noticed that the connection address 
that I was assigned was the Shiva box itself.  Now, typically, I have notice 
that I am assigned a different range of numbers.  I assumed that the address 
assigned to me was due to the terminal mode I was logging into.

Last night, I had THE brainstorm.  I knew that Shiva supported CHAP and PAP. 
 Could it be that I did not need to login to the terminal mode to gain 
access?  That by enabling one of the two above, I would gain access to the 
system directly.  I would have my own IP address at last.

I create the pap-secrets and chap-secrets file in the /etc/ppp directory in 
hopes that I could used them.  However, when I used the auth switch on pppd, 
it gave me the error that the authentication files could not be located.  I 
still have not resolved this problem.

I did find in the man pages a switch called +ua.  +ua takes a file which 
contains the user and password for PAP authentication.  I fired up pppd with 
the new chat script that did not login to the Shiva box as a terminal, just 
dialed and connected.  Bam, I was in.  I set up my route and saw the Mecca. 
 The Internet in all it's gory (not a mistype mind you).

My concern comes that the man pages indicated that this switch was outdated. 
 Problem to be resolve.  Why is it not finding the secrets files?  I tried 
permissions and everything else I could think of (even the current directory 
trick) but no dice.
 ----------
From: jong@ssc.com
To: Plack, Anthony, T.
Subject: Re: PPP routing
Date: Friday, March 22, 1996 10:43AM

X-Mailer: VM Version 5.95 (beta) under XEmacs 19.13 of W

ATPlack@scj.com writes:
>
> I am having a problem with getting my PPP connection to route in version
> 1.2.13.
>
> I am dialing into a Shiva box which supports PPP and trying to set up a
> routed gateway to another network.  I have an Ethernet network at home.
>
> The problem I get is that when I connect, the pppd is creating a route to
> host x.x.x.y
>
> I then run the following command.
>      route add -net x.x.x.0 gw x.x.x.y
>
> If I ping x.x.x.z, I get no reply.  If I ping x.x.x.y I get a reply.
>
> I believe that the Shiva box is giving me an end node address (ie a non
> forwarding address).  Therefore, the pppd should be sourcing the packet
from
> x.x.x.y to x.x.x.z in theory.  However, from what I can tell, the pppd is
> sending from a.a.a.b to x.x.x.y, hoping that x.x.x.y will forward the
> address.  Is that correct?
>
> Is there a version of code that fixes this, if this is true?
>
> I have even tried setting my local address and host address the same using 

> the command
>      pppd connect "chat -f file" 115200 x.x.x.q:x.x.x.q ....

     A couple of questions for you:

     Does your ethernet network have valid IP addresses?  Does the
Shiva box know that you are a network, and not one host?  Do you have
IP forwarding on in the kernel?





home help back first fref pref prev next nref lref last post