GPRS ppp problem HELP - PPP

This is a discussion on GPRS ppp problem HELP - PPP ; Hi I'm Kwon I work in Thai. Now GPRS modem set is very hard. below message is result. I got IP but, script is excute again. Mar 16 00:05:44 192 daemon.info pppd[88]: Serial connection established. Mar 16 00:05:44 192 daemon.info ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: GPRS ppp problem HELP

  1. GPRS ppp problem HELP

    Hi I'm Kwon
    I work in Thai.
    Now GPRS modem set is very hard.
    below message is result.
    I got IP but, script is excute again.

    Mar 16 00:05:44 192 daemon.info pppd[88]: Serial connection
    established.
    Mar 16 00:05:44 192 daemon.info pppd[88]: Using interface ppp0
    Mar 16 00:05:44 192 daemon.notice pppd[88]: Connect: ppp0 <-->
    /dev/tts/2
    Mar 16 00:05:45 192 daemon.warn pppd[88]: Warning - secret file
    /etc/ppp/pap-secrets has world and/or group access
    Mar 16 00:05:47 192 daemon.warn pppd[88]: Warning - secret file
    /etc/ppp/pap-secrets has world and/or group access
    Mar 16 00:05:54 192 daemon.info pppd[88]: Remote message: Welcome!
    Mar 16 00:05:54 192 daemon.notice pppd[88]: PAP authentication
    succeeded
    Mar 16 00:05:54 192 daemon.err pppd[88]: not replacing existing default
    route to eth1 [192.168.10.1]
    Mar 16 00:05:54 192 daemon.notice pppd[88]: local IP address
    192.168.111.112
    Mar 16 00:05:54 192 daemon.notice pppd[88]: remote IP address
    192.168.111.111
    Mar 16 00:05:54 192 daemon.info pppd[88]: LCP terminated by peer
    Mar 16 00:05:54 192 daemon.info pppd[88]: Connect time 0.0 minutes.
    Mar 16 00:05:54 192 daemon.info pppd[88]: Sent 0 bytes, received 0
    bytes.
    Mar 16 00:05:57 192 daemon.notice pppd[88]: Connection terminated.
    Mar 16 00:05:58 192 local2.info chat[99]: timeout set to 60 seconds
    Mar 16 00:05:58 192 local2.info chat[99]: abort on (BUSY)
    Mar 16 00:05:58 192 local2.info chat[99]: abort on (ERROR)
    Mar 16 00:05:58 192 local2.info chat[99]: abort on (NO CARRIER)
    Mar 16 00:05:58 192 local2.info chat[99]: send (AT^M)
    Mar 16 00:05:58 192 local2.info chat[99]: expect (OK)
    Mar 16 00:05:58 192 local2.info chat[99]: AT^M^M
    Mar 16 00:05:58 192 local2.info chat[99]: OK
    Mar 16 00:05:58 192 local2.info chat[99]: -- got it
    Mar 16 00:05:58 192 local2.info chat[99]: send
    (AT+CGDCONT=1,"IP","dtac.co.th","0.0.0.0",0,0^M)
    Mar 16 00:05:59 192 local2.info chat[99]: expect (OK)
    Mar 16 00:05:59 192 local2.info chat[99]: ^M
    Mar 16 00:05:59 192 local2.info chat[99]:
    AT+CGDCONT=1,"IP","dtac.co.th","0.0.0.0",0,0^M^M
    Mar 16 00:05:59 192 local2.info chat[99]: OK
    Mar 16 00:05:59 192 local2.info chat[99]: -- got it
    Mar 16 00:05:59 192 local2.info chat[99]: send (ATD*99***1#^M)
    Mar 16 00:05:59 192 local2.info chat[99]: expect (CONNECT)
    Mar 16 00:05:59 192 local2.info chat[99]: ^M
    Mar 16 00:05:59 192 local2.info chat[99]: ATD*99***1#^M^M
    Mar 16 00:05:59 192 local2.info chat[99]: CONNECT
    Mar 16 00:05:59 192 local2.info chat[99]: -- got it
    Mar 16 00:05:59 192 local2.info chat[99]: send (^M)
    Mar 16 00:05:59 192 daemon.info pppd[88]: Serial connection
    established.
    Mar 16 00:05:59 192 daemon.info pppd[88]: Using interface ppp0
    Mar 16 00:05:59 192 daemon.notice pppd[88]: Connect: ppp0 <-->
    /dev/tts/2
    Mar 16 00:05:59 192 daemon.warn pppd[88]: tcflush failed: Bad file
    descriptor
    Mar 16 00:06:00 192 daemon.warn pppd[88]: tcsetattr: Invalid argument
    (line 1001)
    Mar 16 00:06:00 192 daemon.info pppd[88]: Exit.

    script is...
    1. ppp-start
    2. gprs-options
    3. gprs-connect
    4. pap-secrets


    1. ppp-start is...
    /usr/sbin/pppd file /etc/ppp/gprs-options

    2. gprs-options is...
    /dev/tts/2
    115200
    user "user"
    crtscts
    defaultroute
    connect "/usr/sbin/chat -e -v -f /etc/ppp/gprs-connect"

    3. gprs-connect is...
    TIMEOUT 60
    ABORT 'BUSY'
    ABORT 'ERROR'
    ABORT 'NO CARRIER'
    '' 'AT'
    OK AT+CGDCONT=1,"IP","dtac.co.th","0.0.0.0",0,0
    OK ATD*99***1#
    CONNECT ''

    4. pap-secrets is...
    'user' * 'pass' *

    Why This script is repeat?


  2. Re: GPRS ppp problem HELP

    "ibibiking" writes:
    > Hi I'm Kwon
    > I work in Thai.
    > Now GPRS modem set is very hard.
    > below message is result.
    > I got IP but, script is excute again.


    GPRS has a number of significant design flaws, one of which is that
    the actual user verification doesn't take place until IPCP is
    negotiated. The peer actually *lies* to you when it sends PAP
    Authenticate-Ack. This is extremely counter-intuitive and not
    consistent with the PPP standards, but it causes the sort of problem
    you're seeing.

    You either don't have the pppd 'debug' option enabled, or you don't
    have /etc/syslog.conf set up correctly, so your logs are incomplete.
    I'll decode as much as I can, though.

    > Mar 16 00:05:54 192 daemon.notice pppd[88]: PAP authentication
    > succeeded
    > Mar 16 00:05:54 192 daemon.err pppd[88]: not replacing existing default
    > route to eth1 [192.168.10.1]


    This means that your system has a default route pointing to the
    Ethernet. It's not the source of this problem, but it's almost
    certainly something you don't want to have on your system if you're
    using GPRS to access the Internet. Fix it.

    > Mar 16 00:05:54 192 daemon.notice pppd[88]: local IP address
    > 192.168.111.112
    > Mar 16 00:05:54 192 daemon.notice pppd[88]: remote IP address
    > 192.168.111.111


    This *MAY* result from omitting the "noipdefault" option from your
    pppd configuration.

    > Mar 16 00:05:54 192 daemon.info pppd[88]: LCP terminated by peer


    This means the peer is hanging up on you. Possible reasons include:

    - bad user name
    - bad password
    - GPRS data service not activated

    > 2. gprs-options is...
    > /dev/tts/2
    > 115200
    > user "user"
    > crtscts
    > defaultroute
    > connect "/usr/sbin/chat -e -v -f /etc/ppp/gprs-connect"


    You should have these options as well:

    noauth
    noipdefault

    > Why This script is repeat?


    Most likely, the peer doesn't accept your credentials (user name and
    password).

    --
    James Carlson, KISS Network
    Sun Microsystems / 1 Network Drive 71.232W Vox +1 781 442 2084
    MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677

+ Reply to Thread