Networking Forums

Networking Forums > Computer Networking > Linux Networking > pppd: could not determine remote IP address

Reply
Thread Tools Display Modes

pppd: could not determine remote IP address

 
 
piotrpiotr
Guest
Posts: n/a

 
      01-05-2007, 01:57 PM
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.

 
Reply With Quote
 
 
 
 
Clifford Kite
Guest
Posts: n/a

 
      01-05-2007, 06:02 PM
piotrpiotr <(E-Mail Removed)> 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 */
 
Reply With Quote
 
Unruh
Guest
Posts: n/a

 
      01-06-2007, 03:11 AM
"piotrpiotr" <(E-Mail Removed)> 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 With Quote
 
 
 
Reply

Thread Tools
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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
determine netmask on remote machine OM Windows Networking 4 07-18-2006 05:39 PM
Determine IP address on machine sandeep.de@gmail.com Linux Networking 7 02-09-2006 04:57 PM
remote pppd is killed dr35678@pinus.cc.fer.hr Linux Networking 1 02-01-2006 02:16 PM
Determine IP address assigned to MAC Ian Pilcher Linux Networking 14 01-16-2006 06:20 AM
Determine IP address of WRT54G Another Newsgroup User Wireless Internet 13 08-02-2004 01:32 AM



1 2 3 4 5 6 7 8 9 10 11