Re: FW: Re: Re: could not determine remote ip address

Kostas Sfakiotakis <[email protected]> Thu, 25 Aug 2005 00:21:35 +0300
Newsgroups gmane.linux.redhat.ppp
Message-ID <[email protected]>
[email protected] wrote:
> Dear Kostas,
> 

< snip >

>  
> Precisely. What I am wondering is why my system does not ask for 
> the local IP. I have read the man for pppd, but didn't find anything to 
> force to pppd to ask for the local IP, nor for the DNS server settings 
> (must do it manual). 

Well i do nothing manual , all i did after installing the modem drivers
was to setup a connection using KPPP , so i don't really know what
KPPP did .

The real strange thing to me is that it says "could
> not determine remote IP address", while it just gave an ACK on the 
> configuration of the remote IP.

I don't know that much to tell you what is causing this , perhaps
it is just the most suitable error message that pppd could find to explain
the error situation it encountered .

>  
> The dail scripts are as follows (./dialscript):
>  
> 
> #!/bin/sh
> 
> #
> 
> # This is part 2 of the ppp-on script. It will perform the connection
> 
> # protocol for the desired connection.
> 
> #
> 
> exec chat -v \
> 
>    TIMEOUT 3 \
> 
>    ABORT '\nBUSY\r' \
> 
>    ABORT '\nNO ANSWER\r' \
> 
>    ABORT '\nRINGING\r\n\r\nRINGING\r' \
> 

The above lines just say when the modem should abort the
attempt to connect .

>    '' \rAT \
> 

The exact response to each AT command depends on the modem
usually the AT(Tention ) responds with a status report of the modem .
If you have KPP available give the "Query Modem"  command ,
the output you will get is the result of the "AT "  command .


>    'OK-+++\c-OK' ATH0 \
> 
>    TIMEOUT 30 \
> 
>    OK ATDT1234567 \  (the phonenumber of the ISP)
> 
>    CONNECT '' \
> 
>    ogin:--ogin: myusername_at_provider \
> 
>    assword: my_password
> 
>  > pppd /dev/modem 38400  connect ./dialscript :1.1.1.1
> The man page says that with w.x.y.z:a.b.c.d one can set manually the 
> remote and local IP address.

Well you should leave it without the w.x.y.z:a.b.c.d thing so that 
things will
be configured automatically . My ISP sends me all the required settings
automatically .

>  
> How do you configure the individual steps in the PPP sequence? I thought 
> that it simply would need to be done by the files config files 
> /etc/ppp/pap-secrets and /etc/ppp/chap-secrets.

My best bet would be to agree with your assumption . Well pap-secrets
and chap-secrets are equivalent . Their use depends on your ISP , if
your ISP is using the Password Authentication Protocol ( PAP ) to 
authenticate
you then ppp-secrets is used otherwise if the Challenge Host 
Authentication Protocol
( CHAP ) is used the chap-secrets file is needed .

  Or are there other files
> as well that pppd reads from?
>  
> Could it be that this pppd should simply continue the sequence, but that 
> it doesn't because of a bug?

No i would vote against a ppp bug because i lack the knowledge and the
evidence to prove it .

> regards,
> Michael


Kostas