PPP LCP: timeout

Discussion in 'Linux Networking' started by keysmaiehce, Aug 22, 2004.

  1. keysmaiehce

    keysmaiehce Guest

    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?
     
    keysmaiehce, Aug 22, 2004
    #1
    1. Advertisements

  2. 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, Aug 22, 2004
    #2
    1. Advertisements

  3. 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, Aug 22, 2004
    #3
  4. keysmaiehce

    Moe Trin Guest

    good ole Earthlink. Watch what you are using for a username.
    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.
    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 ''
    [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

    '' * '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.
    [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
     
    Moe Trin, Aug 22, 2004
    #4
  5. keysmaiehce

    Aiehce Guest

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

    there you go and "ppp-on" is sym link of it
     
    Aiehce, Aug 23, 2004
    #5
  6. keysmaiehce

    Aiehce Guest

    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
     
    Aiehce, Aug 23, 2004
    #6
  7. keysmaiehce

    Aiehce Guest

    since someone noticed I'm changing username now. Sorry to trouble you
    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?)
    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
    Very similar to what I configured, except few additional options I have in
    'options'
    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
     
    Aiehce, Aug 23, 2004
    #7
  8. keysmaiehce

    Aiehce Guest

    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!
     
    Aiehce, Aug 23, 2004
    #8
  9. keysmaiehce

    Moe Trin Guest

    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 '' 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.
    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).
    I've been using that script for about 8 years now.
    Yes, kppp is a replacement for /usr/sbin/chat - amoung other things. It's
    just a very bloated front end or 'wrapper' application.
    Bill Unruh's web page (the ubc.ca/ppp-linux.html web page I referenced)
    tells all about that.

    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
     
    Moe Trin, Aug 23, 2004
    #9
  10. keysmaiehce

    Aiehce Guest

    So MSN, Earthlink, Compuserve etc might share same local number for dial
    in. wow that's really cool way to handle business
    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
    I need to look at that web page again, I might overlooked some of end
    parts.. -_-a;;
    Really appreciate experts like you are around in usenet, when getting
    right answer to solve vague problems Thanks!!!
     
    Aiehce, Aug 24, 2004
    #10
  11. keysmaiehce

    Aiehce Guest

    should just use ATZ, I wasn't sure -_-;
     
    Aiehce, Aug 24, 2004
    #11
  12. keysmaiehce

    Moe Trin Guest

    It saves them from having to have a real point of presense - which means
    computers, people, and the whole nine yards. The actual owner of the
    local facilities sees his equipment being utilized more, but that's
    a small cost compared to having each major ISP put in a local facility.
    RFC1334 actually predates win95 by quite a ways (dated October 1992). The
    main reason MS took that and ran with it was that it put less demands on
    the user - imagine having to remember a username and password, just to
    log in (wazzat???) to the Internet (wazzat??? - oh, you mean go surfin').
    Search for the word 'syslog.conf' in that web page.

    Old guy
     
    Moe Trin, Aug 24, 2004
    #12
  13. keysmaiehce

    Moe Trin Guest

    Read what the ATZ command does. Again, this is from the on-line help:

    Zn n=0 Dip #7 up: Yn
    Dip #7 down: &F0
    n=1 Reset to &W0 settings
    n=2 Reset to &W1 settings
    n=3 Reset to &F0 settings
    n=4 Reset to &F1 settings
    n=5 Reset to &F2 settings

    Now in my case, the manual does mention these. So, on your external,
    you'd either get the same conditions (if the DIP switch was down), or
    you'd get whatever is stored in NVRAM (probably location 0.) USR offers
    more options than many other manufacturers, like for example
    Rockwell/Conextant. My other modems are both Rockwell based, and your
    choice is ATZ0 or ATZ1 (ATZ = ATZ0) which gives you the contents of NVRAM
    - meaning whatever you set using the AT&Wn command. But what is that?

    In my manual, USR was quite explicit in recommending AT&F1 as the init
    string - in several places.

    Old guy
     
    Moe Trin, Aug 24, 2004
    #13
  14. keysmaiehce

    Aiehce Guest

    I know what I'm talking about.
    If you're wondering around of my query, and just posting back with how to
    post on usenet, then you ain't shit and helping either
    beat it, b!tch!

    There's no ppp-go in slack 9.1.. the **** do you talking about, how do
    people use dialup if ppp doesn't presents. damnit

    ferking newb
     
    Aiehce, Aug 28, 2004
    #14
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.