LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-23-2005, 08:51 AM   #1
lucastic
Member
 
Registered: Aug 2003
Location: Oz
Distribution: Gentoo - Debian
Posts: 202

Rep: Reputation: 30
irda - GPRS - pppd - DNS problem, need help!


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
 
Old 02-25-2005, 11:04 AM   #2
lucastic
Member
 
Registered: Aug 2003
Location: Oz
Distribution: Gentoo - Debian
Posts: 202

Original Poster
Rep: Reputation: 30
nokia 7250 with gentoo 2.6 IRDA GPRS

turns out I was using the wrong APN, and was not connecting to the correct chat script...

Anyway have written a small tutorial, which can be found here

http://www.linuxlogic.org/default_te...d=13&page=test
 
Old 11-02-2011, 12:11 AM   #3
venkatraju
LQ Newbie
 
Registered: Jun 2010
Posts: 4

Rep: Reputation: 0
gprs connection

i had been facing the problem in gprs connection establishing on linux machine using pppd scripts .

i am working on the tc63i gsm/gprs modem and airtel sim card.

please suggest me!!

i had gone through your script i had tested but i am not successes.

while executing the script i got following messages.

#pppd call gprs
Serial connection established.
using channel 15
Using interface ppp0
Connect: ppp0 <--> /dev/ttyACM0
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xd6ccdaa1>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xd6ccdaa1>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xd6ccdaa1>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xd6ccdaa1>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xd6ccdaa1>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xd6ccdaa1>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xd6ccdaa1>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xd6ccdaa1>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xd6ccdaa1>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xd6ccdaa1>]
LCP: timeout sending Config-Requests
Connection terminated.
Serial connection established.
using channel 16
Using interface ppp0
Connect: ppp0 <--> /dev/ttyACM0
tcflush failed: Bad file descriptor
Attached Files
File Type: txt gprs.txt (573 Bytes, 17 views)
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
IrDA problem igorc Linux - Laptop and Netbook 0 09-25-2005 09:30 AM
gprs irda linsson Linux - Networking 1 03-03-2005 03:07 AM
confguring pppd with GPRS fransemail Linux - Software 0 05-10-2004 04:05 PM
IRDA modem does work, but pppd can't use it (it hangs when sending AT commands) motyl Linux - Hardware 1 04-30-2004 07:31 PM
BTinternet DNS setting & pppd fin Linux - Networking 2 10-18-2002 02:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration