Networking Forums

Networking Forums > Computer Networking > Linux Networking > GPRS connection established, but no ping possible

Reply
Thread Tools Display Modes

GPRS connection established, but no ping possible

 
 
Ekkard Gerlach
Guest
Posts: n/a

 
      10-23-2004, 07:25 PM
I realised a GPRS-Connection with S45 handy. The log
seems to be okay, but ping is possible. Somebody here
who could give me a pointer?

That's what I've done:

/usr/sbin/pppd /dev/ttyS0 115200 connect 'chat -v "" ATH OK
AT+CGQREQ=1,2,4,3,9,31 OK
AT+CGDCONT=1,"IP","INTERNET.EPLUS.DE","",0,0 OK "ATD *99***1#"
CONNECT' noauth defaultroute nocrtscts noipdefault local
ipcp-accept-local novj novjccomp nobsdcomp noccp nodeflate
user eplus name eplus debug

/etc/pap/chap-secrets:
eplus * "gprs"


The output after typing: /usr/sbin/pppd /dev/ttyS0 115200 ... (see above)
=======================
Perms of /dev/ttyS0 are ok, no 'mesg n' neccesary.
Serial connection established.
using channel 12
Using interface ppp0
Connect: ppp0 <--> /dev/ttyS0
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xaaa05e60> <pcomp> <accomp>]
rcvd [LCP ConfNak id=0x1 <asyncmap 0xa0000>]
sent [LCP ConfReq id=0x2 <asyncmap 0xa0000> <magic 0xaaa05e60> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x2 <asyncmap 0xa0000> <magic 0xaaa05e60> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x3 <mru 2000> <asyncmap 0xa0000> <pcomp> <accomp> <magic 0xbb15e1e8> <auth chap MD5>]
sent [LCP ConfAck id=0x3 <mru 2000> <asyncmap 0xa0000> <pcomp> <accomp> <magic 0xbb15e1e8> <auth chap MD5>]
cbcp_lowerup
want: 2
rcvd [CHAP Challenge id=0x1 <292187137f80d0273cc781215ff59802ea0916ca>, name = ""]
sent [CHAP Response id=0x1 <b3c5e55aed22b6fa135144189a9bb997>, name = "eplus"]
rcvd [CHAP Success id=0x1 ""]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0>]
rcvd [IPCP ConfReq id=0x1 <addr 192.168.254.254>]
sent [IPCP ConfAck id=0x1 <addr 192.168.254.254>]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0>]
rcvd [IPCP ConfNak id=0x1 <addr 10.161.35.153>]
sent [IPCP ConfReq id=0x2 <addr 10.161.35.153>]
rcvd [IPCP ConfAck id=0x2 <addr 10.161.35.153>]
not replacing default route to eth0 [192.168.0.1]
local IP address 10.161.35.153
remote IP address 192.168.254.254
Script /etc/ppp/ip-up started (pid 21463)
Script /etc/ppp/ip-up finished (pid 21463), status = 0x0
Terminating on signal 2.
cbcp_lowerdown
Script /etc/ppp/ip-down started (pid 21583)
sent [LCP TermReq id=0x3 "User request"]
rcvd [LCP TermAck id=0x3 "User request"]
Connection terminated.
Connect time 0.6 minutes.
Sent 1384 bytes, received 30 bytes.
Waiting for 1 child processes...
script /etc/ppp/ip-down, pid 21583
Script /etc/ppp/ip-down finished (pid 21583), status = 0x0


I always get a IP but not ping to 192.168.254.254 possible!

Why?

thx
Ekkard
 
Reply With Quote
 
 
 
 
Michael Heiming
Guest
Posts: n/a

 
      10-23-2004, 08:36 PM
In comp.os.linux.networking Ekkard Gerlach <(E-Mail Removed)>:
> I realised a GPRS-Connection with S45 handy. The log
> seems to be okay, but ping is possible. Somebody here
> who could give me a pointer?


> That's what I've done:


> /usr/sbin/pppd /dev/ttyS0 115200 connect 'chat -v "" ATH OK
> AT+CGQREQ=1,2,4,3,9,31 OK
> AT+CGDCONT=1,"IP","INTERNET.EPLUS.DE","",0,0 OK "ATD *99***1#"
> CONNECT' noauth defaultroute nocrtscts noipdefault local
> ipcp-accept-local novj novjccomp nobsdcomp noccp nodeflate
> user eplus name eplus debug

[..]

> not replacing default route to eth0 [192.168.0.1]


Looks like the problem, anyway did you try "GPRS Easy Connect For
Linux", it's likely your provider and phone are already
preconfigured.

http://www.easyconnect.linuxuser.hu/...php?name=index

Good luck

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: 0xEDD27B94)
mail: echo (E-Mail Removed) | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 41: interrupt configuration error
 
Reply With Quote
 
Ekkard Gerlach
Guest
Posts: n/a

 
      10-23-2004, 09:02 PM
Ekkard Gerlach (me!) wrote:
> I realised a GPRS-Connection with S45 handy. The log
> seems to be okay, but ping is possible. Somebody here

GPRS seems *NOT* to allow ping at all!!!! I've never heard of so far!
Neither ping to IP of ppp-host possible nor to DNS-Server!

> /usr/sbin/pppd /dev/ttyS0 115200 connect 'chat -v "" ATH OK
> AT+CGQREQ=1,2,4,3,9,31 OK
> AT+CGDCONT=1,"IP","INTERNET.EPLUS.DE","",0,0 OK "ATD *99***1#"
> CONNECT' noauth defaultroute nocrtscts noipdefault local
> ipcp-accept-local novj novjccomp nobsdcomp noccp nodeflate
> user eplus name eplus debug

It's working: http, ftp, ...

My second fault was to leave the default route to my normal
DSL-gateway untouched! I thought that a second defaultroute
hides the first default route!? Now I know: I have to
delete the second defaultroute and the GPRS-connection works!

This is buggy:
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.254.254 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.254.254 0.0.0.0 UG 0 0 0 ppp0
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0

That's right: (no eth0-default)
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.254.254 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.254.254 0.0.0.0 UG 0 0 0 ppp0


Ekkard
 
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
GPRS card connected to the GPRS network in Linux 2.6.15, can send SMS messages, but still no internet? D2army Linux Networking 10 02-19-2006 03:09 AM
GPRS card connected to the GPRS network in Linux 2.6.15, can send SMS messages, but still no internet? D2army Wireless Internet 8 02-19-2006 03:09 AM
Connection to the Internet cannot be established Blue Horizon Broadband 6 08-24-2005 04:52 PM
VPN connection established but cannot access folders...? =?Utf-8?B?cmFscGggbWFjZG91Z2xhcw==?= Windows Networking 3 10-06-2004 02:21 PM
network connection established - but can't surf iso Windows Networking 6 10-03-2004 02:07 PM



1 2 3 4 5 6 7 8 9 10 11