Hi All,
I am so close to getting a gprs connection working with my Nokia 7250 and Laptop running Gentoo 2.6, over irda.
The connection seems to work but I am unable to figure out how to set the DNS address in the chat-gprs scripts etc.
SO when I type
#pppd call gprs I get:
Code:
Serial connection established.
using channel 33
Using interface ppp0
Connect: ppp0 <--> /dev/ircomm0
sent [LCP ConfReq id=0x1 <asyncmap 0x0>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0>]
sent [LCP ConfAck id=0x1 <asyncmap 0x0>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0>]
sent [LCP ConfAck id=0x1 <asyncmap 0x0>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0>]
sent [LCP ConfAck id=0x1 <asyncmap 0x0>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0>]
sent [LCP ConfAck id=0x1 <asyncmap 0x0>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0>]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0>]
rcvd [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
sent [IPCP ConfRej id=0x1 <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
rcvd [IPCP ConfRej id=0x1 <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
sent [IPCP ConfReq id=0x2 <addr 0.0.0.0>]
rcvd [IPCP ConfReq id=0x2 <addr 0.0.0.0>]
sent [IPCP ConfNak id=0x2 <addr 10.0.0.1>]
rcvd [IPCP ConfNak id=0x2 <addr 10.0.0.1>]
sent [IPCP ConfReq id=0x3 <addr 10.0.0.1>]
rcvd [IPCP ConfReq id=0x3 <addr 10.0.0.1>]
sent [IPCP ConfAck id=0x3 <addr 10.0.0.1>]
rcvd [IPCP ConfAck id=0x3 <addr 10.0.0.1>]
not replacing existing default route to eth1 [192.168.0.1]
local IP address 10.0.0.1
remote IP address 10.0.0.1
Script /etc/ppp/ip-up started (pid 8179)
Script /etc/ppp/ip-up finished (pid 8179), status = 0x100
then when i disconnect I get:
Code:
Terminating on signal 2.
Script /etc/ppp/ip-down started (pid 8180)
sent [LCP TermReq id=0x2 "User request"]
Script /etc/ppp/ip-down finished (pid 8180), status = 0x100
rcvd [LCP TermReq id=0x2 "User request"]
sent [LCP TermAck id=0x2]
rcvd [LCP TermAck id=0x2]
Connection terminated.
Connect time 1.2 minutes.
Sent 78 bytes, received 78 bytes.
Serial link disconnected.
here is my /etc/ppp/peers/gprs
nodetach
debug
hide-password
connect /etc/ppp/peers/gprs-connect-chat
disconnect /etc/ppp/peers/gprs-disconnect-chat
/dev/ircomm0 # IrDA serial port one
57600
nocrtscts
local
:10.0.0.1
noipdefault
ipcp-accept-local
defaultroute
usepeerdns
novj
nobsdcomp
novjccomp
nopcomp
noaccomp
noauth
nodeflate
user "guest"
nomagic
Here is the /etc/ppp/chat-gprs
Code:
exec chat
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,"202.139.83.152","internet","0.0.0.0",0,0
OK-AT-OK AT+CGATT=1 OK-AT-OK ATD*99***1#
CONNECT ''
Here is /etc/ppp/peers/gprs-connect
Code:
#!/bin/sh
#
# $Id: gprs-connect-chat,v 1.2 2004/02/02 23:19:28 mcfrisk Exp $
#
# File:
# gprs-connect-chat
#
# Description:
# chat script to open Radiolinjas GPRS service with GPRS phones. If ppp
# negotiation stalls, try restarting the phone. To try with other GPRS
# operator setting, change the PDP contex setting. The settings work with
# most Ericsson models, but Nokia 8310 and 30 do not support QoS parameters
# with AT commands, so just delete those lines and it'll work.
#
# Set PDP context CID=1, protocol=IP, APN=internet:
#AT+CGDCONT=1,"IP","internet","internet","0.0.0.0",0,0
#
# Set CID=1 QoS requirements from the network, not supported by Nokia:
# AT+CGQREQ=1,0,0,0,0,0
#
# Set CID=1 minimum acceptable QoS parameters, not supported by Nokia:
# AT+CGQMIN=1,0,0,0,0,0
#
# 'Call' CID=1 (activate PDP context one, perform GPRS attach):
#ATD*99***1#
#
# Some phones like the Orange SPV (yes, the Microsoft Smartphone) use this
# dial string to start GPRS connection:
#ATD*99#
#
(note there is nothing un-commented, it doesnt seem to work if I change nything in this file)
The connection to the phone seems ok, but the DNS and IP settings do not seem to be correct, cannot ping any external addresses yet? Can anyone help on how to get the pppd to start up using the correct DNS settings?
Thanks
Lucas