GPRS connection established, but no ping possible

Discussion in 'Linux Networking' started by Ekkard Gerlach, Oct 23, 2004.

  1. 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
     
    Ekkard Gerlach, Oct 23, 2004
    #1
    1. Advertisements

  2. 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/modules.php?name=index

    Good luck
     
    Michael Heiming, Oct 23, 2004
    #2
    1. Advertisements

  3. 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!
    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
     
    Ekkard Gerlach, Oct 23, 2004
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.