PPP LCP: timeout

This is a discussion on PPP LCP: timeout within the Linux Networking forums, part of the Linux Forums category; I'm using earthlink with slack 9.1 and I have problem with using PPP-go, command, I get following ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-22-2004
keysmaiehce
 
Posts: n/a
Default PPP LCP: timeout

I'm using earthlink with slack 9.1 and I have problem with using PPP-go,
command, I get following message,

Connect: ppp0 <--> /dev/modem
LCP: timeout sending Config-Requests
Modem hangup
Connection terminated.

with verbose LCP:... line repeats about 15 to 20 times

I believe up to chat & authentication is successful. Thing is I'm able to
make connection by using Kppp... strange
Now I need to connect to internet from commandline. Help me out to
troubleshoot, what possibly causing this LCP msg to appear, and what's so
difference between kppp and PPP package except kppp is GUI?
Reply With Quote
  #2 (permalink)  
Old 08-22-2004
David Efflandt
 
Posts: n/a
Default Re: PPP LCP: timeout

On Sun, 22 Aug 2004 02:36:58 GMT, keysmaiehce <hmm@no.spam> wrote:
> I'm using earthlink with slack 9.1 and I have problem with using PPP-go,
> command, I get following message,
>
> Connect: ppp0 <--> /dev/modem
> LCP: timeout sending Config-Requests
> Modem hangup
> Connection terminated.
>
> with verbose LCP:... line repeats about 15 to 20 times
>
> I believe up to chat & authentication is successful. Thing is I'm able to
> make connection by using Kppp... strange
> Now I need to connect to internet from commandline. Help me out to
> troubleshoot, what possibly causing this LCP msg to appear, and what's so
> difference between kppp and PPP package except kppp is GUI?


You probably need to enable more logging to see what is actually
happening. Kppp handles its own authentication. But for a commandline
script, I suspect that you would need to properly configure
/etc/ppp/pap-secrets and/or chap-secrets. Otherwise pppd does not know
what to use for username/password.

--
David Efflandt - All spam ignored http://www.de-srv.com/
Reply With Quote
  #3 (permalink)  
Old 08-22-2004
Clifford Kite
 
Posts: n/a
Default Re: PPP LCP: timeout

keysmaiehce <hmm@no.spam> wrote:
> I'm using earthlink with slack 9.1 and I have problem with using PPP-go,


Where in Slackware 9.1 would the "PPP-go" be located? I don't think
it exists.

Frankly, you really need to give more complete information, ask better
questions, and stop using ... so much. Try reading

http://www.catb.org/~esr/faqs/smart-questions.html

--
Clifford Kite Email: "echo xvgr_yvahk-ccc@ri1.arg|rot13"
PPP-Q&A links, downloads: http://ckite.no-ip.net/
Reply With Quote
  #4 (permalink)  
Old 08-22-2004
Moe Trin
 
Posts: n/a
Default Re: PPP LCP: timeout

In article <pan.2004.08.21.22.34.26.333638@no.spam>, keysmaiehce wrote:
>I'm using earthlink with slack 9.1 and I have problem with using PPP-go,
>command, I get following message,
>
>Connect: ppp0 <--> /dev/modem
>LCP: timeout sending Config-Requests
>Modem hangup


good ole Earthlink. Watch what you are using for a username.

>I believe up to chat & authentication is successful. Thing is I'm able to
>make connection by using Kppp... strange


OK, the key is often the authentication. First, in _MOST_ cases, you do
not want to be looking for a login prompt. Earthlink _MAY_ sometimes be
an exception, because they are using contracted points of presence (you
posted from 4.249.207.131, which is a Level3.net address), but that is
now (generally) handled by them having you use a username that contains
'@earthlink.net' so that the peer knows you are an Earthlink customer,
instread of their own.

> Now I need to connect to internet from commandline. Help me out to
> troubleshoot, what possibly causing this LCP msg to appear,


http://axion.physics.ubc.ca/ppp-linux.html
http://www.theory.physics.ubc.ca/ppp-linux.html

You are going to wind up with _SOMETHING_ that looks like this:

[compton ~]$ cat /usr/local/bin/dialin
#!/bin/bash
exec /usr/sbin/pppd connect "/usr/sbin/chat -f /etc/ppp/dialscript" \
defaultroute lock noipdefault modem nodetach /dev/modem 115200 crtscts \
user '123456789@earthlink.net'
[compton ~]$

There must not be anything after the \ in those two lines.

[compton ~]$ cat /etc/ppp/dialscript
ABORT BUSY ABORT 'NO CARRIER' "" AT&F1 OK ATDT2662902 CONNECT \d\c
[compton ~]$

Set up a _PAIR_ of files named /etc/ppp/pap-secrets and chap-secrets that
have the username and passowrd in the form

'123456789@earthlink.net' * 'p42Sw0rD~'

Notice how I'm quoting each variable, to protect any strange characters
each may contain. Obviously, you need to replace the username , password,
and telephone number as required. Also, the AT&F1 is used by USR modems,
Others may want AT&F0. Unless you really know what is in the modem's
NVRAM, "ATZ" is _NOT_ an acceptable init string. See your modem manual.

> and what's so
> difference between kppp and PPP package except kppp is GUI?


[compton ~]$wc /usr/local/bin/dialin /etc/ppp/dialscript
/etc/ppp/pap-secrets
4 19 169 /usr/local/bin/dialin
1 11 67 /etc/ppp/dialscript
1 3 22 /etc/ppp/pap-secrets
6 33 258 total
[compton ~]$

I dunno, maybe about 100K of bloat?

Old guy
Reply With Quote
  #5 (permalink)  
Old 08-23-2004
Aiehce
 
Posts: n/a
Default Re: PPP LCP: timeout

:~$ whereis ppp-go
ppp-go: /usr/sbin/ppp-go

there you go and "ppp-on" is sym link of it


On Sun, 22 Aug 2004 14:02:01 -0500, Clifford Kite wrote:

> keysmaiehce <hmm@no.spam> wrote:
>> I'm using earthlink with slack 9.1 and I have problem with using PPP-go,

>
> Where in Slackware 9.1 would the "PPP-go" be located? I don't think
> it exists.
>
> Frankly, you really need to give more complete information, ask better
> questions, and stop using ... so much. Try reading
>
> http://www.catb.org/~esr/faqs/smart-questions.html


Reply With Quote
  #6 (permalink)  
Old 08-23-2004
Aiehce
 
Posts: n/a
Default Re: PPP LCP: timeout

I used 'debug' option in 'options' file
I don't know it says auth is success, LCP is requesting something after
authentication. I think my ISP isn't responding with ack

On Sun, 22 Aug 2004 15:44:31 +0000, David Efflandt wrote:

> On Sun, 22 Aug 2004 02:36:58 GMT, keysmaiehce <hmm@no.spam> wrote:
>> I'm using earthlink with slack 9.1 and I have problem with using PPP-go,
>> command, I get following message,
>>
>> Connect: ppp0 <--> /dev/modem
>> LCP: timeout sending Config-Requests
>> Modem hangup
>> Connection terminated.
>>
>> with verbose LCP:... line repeats about 15 to 20 times
>>
>> I believe up to chat & authentication is successful. Thing is I'm able to
>> make connection by using Kppp... strange
>> Now I need to connect to internet from commandline. Help me out to
>> troubleshoot, what possibly causing this LCP msg to appear, and what's so
>> difference between kppp and PPP package except kppp is GUI?

>
> You probably need to enable more logging to see what is actually
> happening. Kppp handles its own authentication. But for a commandline
> script, I suspect that you would need to properly configure
> /etc/ppp/pap-secrets and/or chap-secrets. Otherwise pppd does not know
> what to use for username/password.


Reply With Quote
  #7 (permalink)  
Old 08-23-2004
Aiehce
 
Posts: n/a
Default Re: PPP LCP: timeout

On Sun, 22 Aug 2004 15:07:22 -0500, Moe Trin wrote:

> In article <pan.2004.08.21.22.34.26.333638@no.spam>, keysmaiehce wrote:
>>I'm using earthlink with slack 9.1 and I have problem with using PPP-go,
>>command, I get following message,
>>
>>Connect: ppp0 <--> /dev/modem
>>LCP: timeout sending Config-Requests
>>Modem hangup

>
> good ole Earthlink. Watch what you are using for a username.

since someone noticed I'm changing username now. Sorry to trouble you

>
>>I believe up to chat & authentication is successful. Thing is I'm able to
>>make connection by using Kppp... strange

>
> OK, the key is often the authentication. First, in _MOST_ cases, you do
> not want to be looking for a login prompt. Earthlink _MAY_ sometimes be
> an exception, because they are using contracted points of presence (you
> posted from 4.249.207.131, which is a Level3.net address), but that is
> now (generally) handled by them having you use a username that contains
> '@earthlink.net' so that the peer knows you are an Earthlink customer,
> instread of their own.

Is this mean ISPs sharing points where you dial in, and distinguish each
users by portion of username? And what do you mean by not looking for a
login prompt? -_-a;; (in Script file?)

>
>> Now I need to connect to internet from commandline. Help me out to
>> troubleshoot, what possibly causing this LCP msg to appear,

>
> http://axion.physics.ubc.ca/ppp-linux.html
> http://www.theory.physics.ubc.ca/ppp-linux.html
>

Thanks for the link, I gained much knowledges, one of them is
there're so many variations of authentication methods, many more than just
Script,PAP, and CHAP

> You are going to wind up with _SOMETHING_ that looks like this:
>
> [compton ~]$ cat /usr/local/bin/dialin
> #!/bin/bash
> exec /usr/sbin/pppd connect "/usr/sbin/chat -f /etc/ppp/dialscript" \
> defaultroute lock noipdefault modem nodetach /dev/modem 115200 crtscts \
> user '123456789@earthlink.net'
> [compton ~]$
>
> There must not be anything after the \ in those two lines.
>
> [compton ~]$ cat /etc/ppp/dialscript
> ABORT BUSY ABORT 'NO CARRIER' "" AT&F1 OK ATDT2662902 CONNECT \d\c
> [compton ~]$
>
> Set up a _PAIR_ of files named /etc/ppp/pap-secrets and chap-secrets that
> have the username and passowrd in the form
>
> '123456789@earthlink.net' * 'p42Sw0rD~'
>
> Notice how I'm quoting each variable, to protect any strange characters
> each may contain. Obviously, you need to replace the username , password,
> and telephone number as required. Also, the AT&F1 is used by USR modems,
> Others may want AT&F0. Unless you really know what is in the modem's
> NVRAM, "ATZ" is _NOT_ an acceptable init string. See your modem manual.
>

Very similar to what I configured, except few additional options I have in
'options'

>> and what's so
>> difference between kppp and PPP package except kppp is GUI?

>
> [compton ~]$wc /usr/local/bin/dialin /etc/ppp/dialscript
> /etc/ppp/pap-secrets
> 4 19 169 /usr/local/bin/dialin
> 1 11 67 /etc/ppp/dialscript
> 1 3 22 /etc/ppp/pap-secrets
> 6 33 258 total
> [compton ~]$
>
> I dunno, maybe about 100K of bloat?

I really dont' get it, kppp supposed to use pppd, too. Gui version works
but script doesn't. I tried with "lcp-max-configure" and "lcp-restart"
options, no luck. It's like answer is right in front of me but I can't
catch it. I really need know how to log more than 'debug' option. I need
more information

>
> Old guy


Reply With Quote
  #8 (permalink)  
Old 08-23-2004
Aiehce
 
Posts: n/a
Default Re: PPP LCP: timeout

Got it!
Problem was pppscript
Using AT&F1 instead of AT&F0 fixed the trouble(I'm using USR external).
Still wondering that's reset modem command, how did it effected to
negotiation process

Thanks very much!! You're a life saver!
Reply With Quote
  #9 (permalink)  
Old 08-23-2004
Moe Trin
 
Posts: n/a
Default Re: PPP LCP: timeout

In article <pan.2004.08.23.00.06.29.158964@no.spam>, Aiehce wrote:
>Is this mean ISPs sharing points where you dial in, and distinguish each
>users by portion of username?


With most ISPs, authentication isn't done _directly_ on the box that
you are dialing into. Instead, there is an authentication server that
is isolated for security, and it has all of the usernames and passwords.

On the box you are dialing into, it looks at the username, and MAY make
a decision which authentication server to ask. Thus, if you dial in to
Level3.net, there server will see your '123456789@earthlink.net' username
and pass it (and the password you sent) to the Earthlink authentication
server. Another person from Compuserve or Prodigy, or MSN.net (all of
which use contracted service points), would have a different type of
username, and authentication data is passed to the appropriate
auythentication server. The remote authentication server then replies to
the box you are logging in on, with a Success or Fail message, and
things continue from there. In this way, Earthlink (or Compuserve, or
Prodigy, or MSN) keeps their authentication data in one place, rather
than duplicated onto the servers at every place where you can dial in.

>And what do you mean by not looking for a login prompt? -_-a;; (in
>Script file?)


If you look at the documentation that comes with pppd, or in the PPP-HOWTO
(or ISP-Hookup-HOWTO), you will see the chat script looking for a login
prompt. For example:

#!/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' \
'' \rAT \
'OK-+++\c-OK' ATH0 \
TIMEOUT 30 \
OK ATDT$TELEPHONE \
CONNECT '' \
ogin:--ogin: $ACCOUNT \
assword: $PASSWORD

That's the file 'ppp-on-dialer' from the pppd package. Notice how this looks
for something that says 'ogin:' (meaning it will accept 'Login:' or 'login:'.
This got you into a shell login on the server, and that should have started
the pppd application there. Unfortunetly, when Microsoft invented the
telephone (or was it the internet) in 1995, their program wouldn't handle
such a scripted connection. Most ISPs follow the demands of Microsoft, and
changed the way their servers are configured, so as to use RFC1334
authentication (PAP).

>Very similar to what I configured, except few additional options I have in
>'options'


I've been using that script for about 8 years now.

>> I dunno, maybe about 100K of bloat?

>I really dont' get it, kppp supposed to use pppd, too.


Yes, kppp is a replacement for /usr/sbin/chat - amoung other things. It's
just a very bloated front end or 'wrapper' application.

>I really need know how to log more than 'debug' option. I need
>more information


Bill Unruh's web page (the ubc.ca/ppp-linux.html web page I referenced)
tells all about that.

On Mon, 23 Aug 2004 04:31:36 GMT, you added:

>Got it!
>Problem was pppscript
>Using AT&F1 instead of AT&F0 fixed the trouble(I'm using USR external).


THAT'S why I always recommend reading the modem manual ;-)

from the on-line help available from many USR modems

&Fn n=0 Load Factory 0, no FC
n=1 Load Factory 1, HW FC
n=2 Load Factory 2, SW FC

FC = flow control. The data was getting corrupted because you were
not using flow control.

Old guy

Reply With Quote
  #10 (permalink)  
Old 08-24-2004
Aiehce
 
Posts: n/a
Default Re: PPP LCP: timeout

On Mon, 23 Aug 2004 16:57:17 -0500, Moe Trin wrote:

> In article <pan.2004.08.23.00.06.29.158964@no.spam>, Aiehce wrote:
>>Is this mean ISPs sharing points where you dial in, and distinguish each
>>users by portion of username?

>
> With most ISPs, authentication isn't done _directly_ on the box that
> you are dialing into. Instead, there is an authentication server that
> is isolated for security, and it has all of the usernames and passwords.
>
> On the box you are dialing into, it looks at the username, and MAY make
> a decision which authentication server to ask. Thus, if you dial in to
> Level3.net, there server will see your '123456789@earthlink.net' username
> and pass it (and the password you sent) to the Earthlink authentication
> server. Another person from Compuserve or Prodigy, or MSN.net (all of
> which use contracted service points), would have a different type of
> username, and authentication data is passed to the appropriate
> auythentication server. The remote authentication server then replies to
> the box you are logging in on, with a Success or Fail message, and
> things continue from there. In this way, Earthlink (or Compuserve, or
> Prodigy, or MSN) keeps their authentication data in one place, rather
> than duplicated onto the servers at every place where you can dial in.
>


So MSN, Earthlink, Compuserve etc might share same local number for dial
in. wow that's really cool way to handle business

>>And what do you mean by not looking for a login prompt? -_-a;; (in
>>Script file?)

>
> If you look at the documentation that comes with pppd, or in the
> PPP-HOWTO (or ISP-Hookup-HOWTO), you will see the chat script looking
> for a login prompt. For example:
>
> #!/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' \ '' \rAT
> \ 'OK-+++\c-OK' ATH0
> \ TIMEOUT 30 \ OK
> ATDT$TELEPHONE \ CONNECT ''
> \ ogin:--ogin: $ACCOUNT
> \ assword: $PASSWORD
>
> That's the file 'ppp-on-dialer' from the pppd package. Notice how this
> looks for something that says 'ogin:' (meaning it will accept 'Login:'
> or 'login:'. This got you into a shell login on the server, and that
> should have started the pppd application there. Unfortunetly, when
> Microsoft invented the telephone (or was it the internet) in 1995, their
> program wouldn't handle such a scripted connection. Most ISPs follow the
> demands of Microsoft, and changed the way their servers are configured,
> so as to use RFC1334 authentication (PAP).
>


got it. remembered to expect just 'connect' for PAP, and CHAP in
script. Didin't know MS changed to their way with their influence in
Software biz

>>Very similar to what I configured, except few additional options I have
>>in 'options'

>
> I've been using that script for about 8 years now.
>
>>> I dunno, maybe about 100K of bloat?

>>I really dont' get it, kppp supposed to use pppd, too.

>
> Yes, kppp is a replacement for /usr/sbin/chat - amoung other things.
> It's just a very bloated front end or 'wrapper' application.
>
>>I really need know how to log more than 'debug' option. I need more
>>information

>
> Bill Unruh's web page (the ubc.ca/ppp-linux.html web page I referenced)
> tells all about that.


I need to look at that web page again, I might overlooked some of end
parts.. -_-a;;

>
> On Mon, 23 Aug 2004 04:31:36 GMT, you added:
>
>>Got it!
>>Problem was pppscript
>>Using AT&F1 instead of AT&F0 fixed the trouble(I'm using USR external).

>
> THAT'S why I always recommend reading the modem manual ;-)
>
> from the on-line help available from many USR modems
>
> &Fn n=0 Load Factory 0, no FC
> n=1 Load Factory 1, HW FC
> n=2 Load Factory 2, SW FC
>
> FC = flow control. The data was getting corrupted because you were not
> using flow control.
>
> Old guy


Really appreciate experts like you are around in usenet, when getting
right answer to solve vague problems Thanks!!!
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:03 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0