View Single Post
Sohil876's Avatar
Posts: 130 | Thanked: 132 times | Joined on Jan 2013 @ India
#1
So ive been trying to use pppd in n900 over bluetooth dun (with kp53) to connect to internet via nokia 2690 phone with instructions from Matans thread and googling a lot of sites. I finally made it work after getting the right chat script and it was working just fine... until for some reason while conected via pppd my phone froze and had to restart it. After that it never worked fully again, fully because i can ping/access any site via ip but in not able to visit domains, also im unable to ping my peer it results in 100% packet loss, i can ping nameservers successfully. I think its probably a dns or route problem, what do you guys think.

My chat script:
Code:
ABORT   'BUSY'
ABORT   'NO CARRIER'
ABORT   'ERROR'
TIMEOUT 5
REPORT   CONNECT
''      AT
OK      AT&C1
OK      ATZ
OK      AT+CGDCONT=1,"IP","Tata.Docomo.Internet"
OK      ATDT*99#
TIMEOUT 30
CONNECT    ''
Options file:
Code:
#dump
#460800
#115200
#nocrtscts
#defaultroute
#replacedefaultroute
usepeerdns
noauth
lock
#noip
noipdefault
ipcp-accept-local
ipcp-accept-remote
debug
nodetach
#persist
#passive
#default-asyncmap
#asyncmap 0
noaccomp
nobsdcomp
nodeflate
nopcomp
novj
noccp
novjccomp
refuse-chap
user "blank"
password "blank"
Also is this the default /etc/resolv.conf on n900? this is my current one:
Code:
nameserver 127.0.0.1
nameserver ::1
pppd log:
Code:
abort on (BUSY)
abort on (NO CARRIER)
abort on (ERROR)
timeout set to 5 seconds
report (CONNECT)
send (AT^M)
expect (OK)
AT^M^M
OK
 -- got it

send (AT+CGDCONT=1,"IP","Tata.Docomo.Internet"^M)
expect (OK)
^M
AT+CGDCONT=1,"IP","Tata.Docomo.Internet"^M^M
OK
 -- got it

send (ATDT*99#^M)
timeout set to 30 seconds
expect (CONNECT)
^M
ATDT*99#^M^M
CONNECT
 -- got it

send (^M)
chat:  May 06 16:59:52 CONNECT
Script /usr/sbin/chat -s -S -v -f /etc/ppp/chat/gprs.chat finished (pid 1884), status = 0x0
Serial connection established.
using channel 1
Using interface ppp0
Connect: ppp0 <--> /dev/rfcomm2
rcvd [LCP ConfReq id=0x0 <auth pap> <mru 1500> <asyncmap 0xa0000>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x6fe66ce6>]
sent [LCP ConfAck id=0x0 <auth pap> <mru 1500> <asyncmap 0xa0000>]
rcvd [LCP ConfRej id=0x1 <magic 0x6fe66ce6>]
sent [LCP ConfReq id=0x2 <asyncmap 0x0>]
rcvd [LCP ConfAck id=0x2 <asyncmap 0x0>]
sent [PAP AuthReq id=0x1 user="blank" password=<hidden>]
rcvd [PAP AuthAck id=0x1 ""]
PAP authentication succeeded
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
rcvd [IPCP ConfReq id=0x0 <addr 10.6.6.6>]
sent [IPCP ConfAck id=0x0 <addr 10.6.6.6>]
rcvd [IPCP ConfNak id=0x1 <addr 100.99.179.75> <ms-dns1 103.8.45.5> <ms-dns2 103.8.46.5>]
sent [IPCP ConfReq id=0x2 <addr 100.99.179.75> <ms-dns1 103.8.45.5> <ms-dns2 103.8.46.5>]
rcvd [IPCP ConfReq id=0x0 <addr 10.6.6.6>]
sent [IPCP ConfAck id=0x0 <addr 10.6.6.6>]
rcvd [IPCP ConfAck id=0x2 <addr 100.99.179.75> <ms-dns1 103.8.45.5> <ms-dns2 103.8.46.5>]
local  IP address 100.99.179.75
remote IP address 10.6.6.6
primary   DNS address 103.8.45.5
secondary DNS address 103.8.46.5
Terminating on signal 2
Connect time 2.5 minutes.
Sent 1092 bytes, received 0 bytes.
sent [LCP TermReq id=0x3 "User request"]
rcvd [LCP TermAck id=0x3]
Connection terminated.
ifconfig ppp0 output:
Code:
ppp0      Link encap:Point-to-Point Protocol  
          inet addr:100.99.179.75  P-t-P:10.6.6.6  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3 
          RX bytes:64 (64.0 B)  TX bytes:64 (64.0 B)
Heres what route -n shows after pppd connects:
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.6.6.6        0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
And heres what route -n gives with defaultroute and replacedefaultroute enabled in options file:

Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.6.6.6        0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
0.0.0.0        0.0.0.0         0.0.0.0 U    0      0        0 ppp0

Last edited by Sohil876; 2016-05-06 at 13:24.