LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Trying to connect to Internet via GPRS always fails, why? (https://www.linuxquestions.org/questions/linux-networking-3/trying-to-connect-to-internet-via-gprs-always-fails-why-518156/)

onorua 01-10-2007 04:51 PM

Trying to connect to Internet via GPRS always fails, why?
 
Hi All!
I've faced with this issue when tried to configure internet connection on my laptop via Bluetooth+GPRS.
Bluetooth part is perfect, it's pretty simple to configure so I'll not post this configuration, (let me know if it is necessary BTW). But in my opinion main issue with pppd session negotiation.

What I actually have:
My pppd peer's file.
Code:

=====================
15:43 lc ~ # cat /etc/ppp/peers/life
/dev/rfcomm0 115200
connect '/usr/sbin/chat -v -f /etc/ppp/life-gprs'
crtscts
modem -detach
noccp
defaultroute
usepeerdns
noauth
ipcp-accept-remote
ipcp-accept-local
noipdefault

Here is I have "chat" script to connect to my provider by phone's modem
Code:

15:44 lc ~ # cat /etc/ppp/life-gprs
'' ATZ OK
AT+CGDCONT=1,"IP","internet"
# Here is string with number to call
OK "ATD*99***1#"
CONNECT ''

I've been tried to start my connection with debug option:
Code:

00:39 lc ~ # pppd call life
Serial connection established.
using channel 6
Using interface ppp0
Connect: ppp0 <--> /dev/rfcomm0
rcvd [LCP ConfReq id=0x1 <auth pap> <accomp> <pcomp> <asyncmap 0x0> <magic 0x870                                                       
0216>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x52cc2b0> <pcomp> <accomp>]
No auth is possible
sent [LCP ConfRej id=0x1 <auth pap>]
rcvd [LCP ConfReq id=0x2 <auth pap> <accomp> <pcomp> <asyncmap 0x0> <magic 0x870                                                       
0216>]
No auth is possible
sent [LCP ConfRej id=0x2 <auth pap>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x52cc2b0> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x52cc2b0> <pcomp> <accomp>]
Modem hangup
Connection terminated.

During procedure above, I see status on my cell phone something like (Connecting to Internet). But after
Code:

Modem hangup
string, I always see something like "Problem with connecting to provider".

Maybe somebody can help me with it?

P.S. I can make connections with Windows if it help..

blackhole54 01-10-2007 08:35 PM

Quote:

Originally Posted by onorua
No auth is possible

NOTE: I am basing my interpretation of the above message on this post.

It sounds like you are supposed authenticate yourself (think password) with the remote server. From the chat script it looks like this is expected to be done with PAP or CHAP. This means that either (or both) /etc/ppp/pap-secrets or /etc/ppp/chap-secrets should contain your username and password. Check the pppd man page for info on the format for these files.


All times are GMT -5. The time now is 04:39 AM.