pppd: could not determine remote IP address - Networking

This is a discussion on pppd: could not determine remote IP address - Networking ; hello, i have the problem noted in the subject as so many before me and i also have no idea how i could help it... i am using a Option Quad GPRS-PCMCIA card which is recognised by the kernel (version ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: pppd: could not determine remote IP address

  1. pppd: could not determine remote IP address

    hello,

    i have the problem noted in the subject as so many before me
    and i also have no idea how i could help it...

    i am using a Option Quad GPRS-PCMCIA card which is recognised by the
    kernel (version 2.6.18 from Debian unstable - Etch)

    Here's the output from the kernel syslog when i do "pon Vodafone":


    ------------------------------------------------------------------------------------------------
    ------------------------------------------------------------------------------------------------
    Jan 5 17:53:00 localhost pppd[3515]: pppd 2.4.4 started by root, uid 0
    Jan 5 17:53:01 localhost chat[3516]: abort on (BUSY)
    Jan 5 17:53:01 localhost chat[3516]: abort on (NO CARRIER)
    Jan 5 17:53:01 localhost chat[3516]: abort on (VOICE)
    Jan 5 17:53:01 localhost chat[3516]: abort on (NO DIALTONE)
    Jan 5 17:53:01 localhost chat[3516]: abort on (NO DIAL TONE)
    Jan 5 17:53:01 localhost chat[3516]: abort on (NO ANSWER)
    Jan 5 17:53:01 localhost chat[3516]: abort on (DELAYED)
    Jan 5 17:53:01 localhost chat[3516]: send (ATZ^M)
    Jan 5 17:53:01 localhost chat[3516]: expect (OK)
    Jan 5 17:53:01 localhost chat[3516]: ATZ^M^M
    Jan 5 17:53:01 localhost chat[3516]: OK
    Jan 5 17:53:01 localhost chat[3516]: -- got it
    Jan 5 17:53:01 localhost chat[3516]: send
    (AT+CGDCONT=1,"IP","event.vodafone.de"^M)
    Jan 5 17:53:02 localhost chat[3516]: expect (OK)
    Jan 5 17:53:02 localhost chat[3516]: ^M
    Jan 5 17:53:02 localhost chat[3516]:
    AT+CGDCONT=1,"IP","event.vodafone.de"^M^M
    Jan 5 17:53:02 localhost chat[3516]: OK
    Jan 5 17:53:02 localhost chat[3516]: -- got it
    Jan 5 17:53:02 localhost chat[3516]: send (ATDT*99***1#^M)
    Jan 5 17:53:02 localhost chat[3516]: expect (CONNECT)
    Jan 5 17:53:02 localhost chat[3516]: ^M
    Jan 5 17:53:02 localhost chat[3516]: ATDT*99***1#^M^M
    Jan 5 17:53:02 localhost chat[3516]: CONNECT
    Jan 5 17:53:02 localhost chat[3516]: -- got it
    Jan 5 17:53:02 localhost chat[3516]: send (^M)
    Jan 5 17:53:02 localhost pppd[3515]: Serial connection established.
    Jan 5 17:53:02 localhost pppd[3515]: Using interface ppp0
    Jan 5 17:53:02 localhost pppd[3515]: Connect: ppp0 <--> /dev/ttyUSB0
    Jan 5 17:53:03 localhost pppd[3515]: PAP authentication succeeded
    Jan 5 17:53:07 localhost pppd[3515]: Could not determine remote IP
    address: defaulting to 10.64.64.64
    Jan 5 17:53:07 localhost pppd[3515]: local IP address 10.250.151.211
    Jan 5 17:53:07 localhost pppd[3515]: remote IP address 10.64.64.64
    Jan 5 17:53:07 localhost pppd[3515]: primary DNS address
    139.7.30.125
    Jan 5 17:53:07 localhost pppd[3515]: secondary DNS address
    139.7.30.126

    ------------------------------------------------------------------------------------------------
    ------------------------------------------------------------------------------------------------


    /etc/chatscripts/Vodafone has the following content:

    ------------------------------------------------------------------------------------------------
    ------------------------------------------------------------------------------------------------
    connect "/usr/sbin/chat -v -f /etc/chatscripts/Vodafone"
    debug
    /dev/ttyUSB0
    921600
    defaultroute
    usepeerdns
    ------------------------------------------------------------------------------------------------
    ------------------------------------------------------------------------------------------------

    /etc/ppp/peers/Vodafone has the following content:

    ------------------------------------------------------------------------------------------------
    ------------------------------------------------------------------------------------------------
    ABORT BUSY
    ABORT 'NO CARRIER'
    ABORT VOICE
    ABORT 'NO DIALTONE'
    ABORT 'NO DIAL TONE'
    ABORT 'NO ANSWER'
    ABORT DELAYED
    '' ATZ
    OK-AT-OK AT+CGDCONT=1,"IP","event.vodafone.de"
    OK-AT-OK ATDT*99***1#
    CONNECT ''
    ------------------------------------------------------------------------------------------------
    ------------------------------------------------------------------------------------------------


    i cannot understand at all that the remote ip address cannot be
    determined; i get a
    different ip address every time i connect, and this must come from
    somewhere?!

    any help would be really appreciated...

    p.s.: i tried also to start pppd with the option "0.0.0.0:0.0.0.0",
    without any changes.


  2. Re: pppd: could not determine remote IP address

    piotrpiotr wrote:
    > hello,


    > i have the problem noted in the subject as so many before me
    > and i also have no idea how i could help it...


    > i am using a Option Quad GPRS-PCMCIA card which is recognised by the
    > kernel (version 2.6.18 from Debian unstable - Etch)


    > Here's the output from the kernel syslog when i do "pon Vodafone":



    > Jan 5 17:53:00 localhost pppd[3515]: pppd 2.4.4 started by root, uid 0
    > Jan 5 17:53:01 localhost chat[3516]: abort on (BUSY)
    > Jan 5 17:53:01 localhost chat[3516]: abort on (NO CARRIER)
    > Jan 5 17:53:01 localhost chat[3516]: abort on (VOICE)
    > Jan 5 17:53:01 localhost chat[3516]: abort on (NO DIALTONE)
    > Jan 5 17:53:01 localhost chat[3516]: abort on (NO DIAL TONE)
    > Jan 5 17:53:01 localhost chat[3516]: abort on (NO ANSWER)
    > Jan 5 17:53:01 localhost chat[3516]: abort on (DELAYED)
    > Jan 5 17:53:01 localhost chat[3516]: send (ATZ^M)
    > Jan 5 17:53:01 localhost chat[3516]: expect (OK)
    > Jan 5 17:53:01 localhost chat[3516]: ATZ^M^M
    > Jan 5 17:53:01 localhost chat[3516]: OK
    > Jan 5 17:53:01 localhost chat[3516]: -- got it
    > Jan 5 17:53:01 localhost chat[3516]: send
    > (AT+CGDCONT=1,"IP","event.vodafone.de"^M)
    > Jan 5 17:53:02 localhost chat[3516]: expect (OK)
    > Jan 5 17:53:02 localhost chat[3516]: ^M
    > Jan 5 17:53:02 localhost chat[3516]:
    > AT+CGDCONT=1,"IP","event.vodafone.de"^M^M
    > Jan 5 17:53:02 localhost chat[3516]: OK
    > Jan 5 17:53:02 localhost chat[3516]: -- got it
    > Jan 5 17:53:02 localhost chat[3516]: send (ATDT*99***1#^M)
    > Jan 5 17:53:02 localhost chat[3516]: expect (CONNECT)
    > Jan 5 17:53:02 localhost chat[3516]: ^M
    > Jan 5 17:53:02 localhost chat[3516]: ATDT*99***1#^M^M
    > Jan 5 17:53:02 localhost chat[3516]: CONNECT
    > Jan 5 17:53:02 localhost chat[3516]: -- got it
    > Jan 5 17:53:02 localhost chat[3516]: send (^M)
    > Jan 5 17:53:02 localhost pppd[3515]: Serial connection established.
    > Jan 5 17:53:02 localhost pppd[3515]: Using interface ppp0
    > Jan 5 17:53:02 localhost pppd[3515]: Connect: ppp0 <--> /dev/ttyUSB0
    > Jan 5 17:53:03 localhost pppd[3515]: PAP authentication succeeded
    > Jan 5 17:53:07 localhost pppd[3515]: Could not determine remote IP
    > address: defaulting to 10.64.64.64
    > Jan 5 17:53:07 localhost pppd[3515]: local IP address 10.250.151.211
    > Jan 5 17:53:07 localhost pppd[3515]: remote IP address 10.64.64.64
    > Jan 5 17:53:07 localhost pppd[3515]: primary DNS address
    > 139.7.30.125
    > Jan 5 17:53:07 localhost pppd[3515]: secondary DNS address
    > 139.7.30.126



    > /etc/chatscripts/Vodafone has the following content:


    No, it's the peers file.

    > connect "/usr/sbin/chat -v -f /etc/chatscripts/Vodafone"
    > debug
    > /dev/ttyUSB0
    > 921600
    > defaultroute
    > usepeerdns


    > /etc/ppp/peers/Vodafone has the following content:


    This is the chat script.

    > ABORT BUSY
    > ABORT 'NO CARRIER'
    > ABORT VOICE
    > ABORT 'NO DIALTONE'
    > ABORT 'NO DIAL TONE'
    > ABORT 'NO ANSWER'
    > ABORT DELAYED
    > '' ATZ
    > OK-AT-OK AT+CGDCONT=1,"IP","event.vodafone.de"
    > OK-AT-OK ATDT*99***1#
    > CONNECT ''



    > i cannot understand at all that the remote ip address cannot be
    > determined; i get a different ip address every time i connect,
    > and this must come from somewhere?!


    Your IP address comes from the peer. I don't see any problem.
    Pppd assigned the peer an IP address when the peer didn't request
    one and the GPRS connection very likely works. It's the IP address
    for pppd that's important and the peer provides that.

    > any help would be really appreciated...


    > p.s.: i tried also to start pppd with the option "0.0.0.0:0.0.0.0",
    > without any changes.


    If you just don't like the message, or there really is a problem,
    then try asking the peer use a RFC 1918 address not in 10/8, e.g.,
    ":192.168.0.1"

    If you want details about PPP negotiations then add

    daemon.*;local2.* /var/log/ppp.log

    to /etc/syslog.conf, do "kill -HUP $(pidof syslogd)" to make syslogd
    reread syslog.conf, and bring up a connection while using the pppd
    debug option (as in the peers file above).

    --
    Clifford Kite
    /* For every credibility gap, there is a gullibility fill.
    -- R. Clopton */

  3. Re: pppd: could not determine remote IP address

    "piotrpiotr" writes:

    >hello,


    >i have the problem noted in the subject as so many before me
    >and i also have no idea how i could help it...


    www.theory.physics.ubc.ca/ppp-linux.html


    >i am using a Option Quad GPRS-PCMCIA card which is recognised by the
    >kernel (version 2.6.18 from Debian unstable - Etch)


    >Here's the output from the kernel syslog when i do "pon Vodafone":



    >------------------------------------------------------------------------------------------------
    >------------------------------------------------------------------------------------------------
    >Jan 5 17:53:00 localhost pppd[3515]: pppd 2.4.4 started by root, uid 0
    >Jan 5 17:53:01 localhost chat[3516]: abort on (BUSY)
    >Jan 5 17:53:01 localhost chat[3516]: abort on (NO CARRIER)
    >Jan 5 17:53:01 localhost chat[3516]: abort on (VOICE)
    >Jan 5 17:53:01 localhost chat[3516]: abort on (NO DIALTONE)
    >Jan 5 17:53:01 localhost chat[3516]: abort on (NO DIAL TONE)
    >Jan 5 17:53:01 localhost chat[3516]: abort on (NO ANSWER)
    >Jan 5 17:53:01 localhost chat[3516]: abort on (DELAYED)
    >Jan 5 17:53:01 localhost chat[3516]: send (ATZ^M)
    >Jan 5 17:53:01 localhost chat[3516]: expect (OK)
    >Jan 5 17:53:01 localhost chat[3516]: ATZ^M^M
    >Jan 5 17:53:01 localhost chat[3516]: OK
    >Jan 5 17:53:01 localhost chat[3516]: -- got it
    >Jan 5 17:53:01 localhost chat[3516]: send
    >(AT+CGDCONT=1,"IP","event.vodafone.de"^M)
    >Jan 5 17:53:02 localhost chat[3516]: expect (OK)
    >Jan 5 17:53:02 localhost chat[3516]: ^M
    >Jan 5 17:53:02 localhost chat[3516]:
    >AT+CGDCONT=1,"IP","event.vodafone.de"^M^M
    >Jan 5 17:53:02 localhost chat[3516]: OK
    >Jan 5 17:53:02 localhost chat[3516]: -- got it
    >Jan 5 17:53:02 localhost chat[3516]: send (ATDT*99***1#^M)
    >Jan 5 17:53:02 localhost chat[3516]: expect (CONNECT)
    >Jan 5 17:53:02 localhost chat[3516]: ^M
    >Jan 5 17:53:02 localhost chat[3516]: ATDT*99***1#^M^M


    This is a gsm phone, and they in general have incompetent programmers
    programming ppp on them.

    >Jan 5 17:53:02 localhost chat[3516]: CONNECT
    >Jan 5 17:53:02 localhost chat[3516]: -- got it
    >Jan 5 17:53:02 localhost chat[3516]: send (^M)


    Bad idea. You send a carriage return at the end of your negotiations.
    Change it to
    CONNECT '\d\c'

    >Jan 5 17:53:02 localhost pppd[3515]: Serial connection established.
    >Jan 5 17:53:02 localhost pppd[3515]: Using interface ppp0
    >Jan 5 17:53:02 localhost pppd[3515]: Connect: ppp0 <--> /dev/ttyUSB0


    You need to place the word
    debug
    into /etc/ppp/options and alter /etc/syslog.conf to include the line
    daemon.*;local2.* /var/log/ppplog
    Then do
    killall -1 syslogd

    DO NOT FORGET the -1


    >Jan 5 17:53:03 localhost pppd[3515]: PAP authentication succeeded
    >Jan 5 17:53:07 localhost pppd[3515]: Could not determine remote IP
    >address: defaulting to 10.64.64.64


    Should not matter since that address is only used by your machine.

    >Jan 5 17:53:07 localhost pppd[3515]: local IP address 10.250.151.211
    >Jan 5 17:53:07 localhost pppd[3515]: remote IP address 10.64.64.64
    >Jan 5 17:53:07 localhost pppd[3515]: primary DNS address
    >139.7.30.125
    >Jan 5 17:53:07 localhost pppd[3515]: secondary DNS address
    >139.7.30.126


    So what problems are you having? Or are you just concerned that this error
    message is popping up?


    >------------------------------------------------------------------------------------------------
    >------------------------------------------------------------------------------------------------



    >/etc/chatscripts/Vodafone has the following content:


    >------------------------------------------------------------------------------------------------
    >------------------------------------------------------------------------------------------------
    >connect "/usr/sbin/chat -v -f /etc/chatscripts/Vodafone"
    >debug


    you forgot to set up /etc/syslog.conf

    >/dev/ttyUSB0
    >921600
    >defaultroute
    >usepeerdns
    >------------------------------------------------------------------------------------------------
    >------------------------------------------------------------------------------------------------


    >/etc/ppp/peers/Vodafone has the following content:


    >------------------------------------------------------------------------------------------------
    >------------------------------------------------------------------------------------------------
    >ABORT BUSY
    >ABORT 'NO CARRIER'
    >ABORT VOICE
    >ABORT 'NO DIALTONE'
    >ABORT 'NO DIAL TONE'
    >ABORT 'NO ANSWER'
    >ABORT DELAYED
    >'' ATZ


    Idiotic to use ATZ Use AT&F or AT&F1 since ATZ uses some random setup that
    some lunatic program last stored on the modem for you.

    >OK-AT-OK AT+CGDCONT=1,"IP","event.vodafone.de"
    >OK-AT-OK ATDT*99***1#
    >CONNECT ''


    End with '\d\c' NOT ''



    >------------------------------------------------------------------------------------------------
    >------------------------------------------------------------------------------------------------



    >i cannot understand at all that the remote ip address cannot be
    >determined; i get a
    >different ip address every time i connect, and this must come from
    >somewhere?!


    At random. It does not really matter. ARe you having other problems? This
    is not a problem.



    >any help would be really appreciated...


    >p.s.: i tried also to start pppd with the option "0.0.0.0:0.0.0.0",
    >without any changes.



    No it will not help. If the remote side is unwilling to tell you an address
    for itself, you cannot force it to.

    Now tell us what your real problem is.



+ Reply to Thread