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 - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-13-2005, 05:23 AM   #1
Rodolfo Medina
Member
 
Registered: Nov 2004
Posts: 61

Rep: Reputation: 15
Internet connection with cellular phone


I already posted this request of help to the debian-laptop mailing list,
but couldn't get help. Maybe someone on this forum?

I'm trying to connect to internet with a gprs cellular phone, a Motorola c350,
connected to my laptop Hyundai 255KI 15 with a mini usb cable.
Debian Sarge 3.1 is installed.
I've been following the howto at:

http://www.debianitalia.org/modules/...1&articleid=96

. First I made sure the acm driver was there, with:

# dmesg |fgrep acm

. Then I did:

# mknod /dev/usb/ttyACM0 c 166 0

. Then I created a file /etc/pppd/peers/provider and filled it with:


# Speed
115200
# Use hardware flow control (i.e. RTS/CTS) to control the flow
# of data on the serial port.
crtscts
# Use the modem control lines.
modem
# Specifies that pppd should create a UUCP-style lock file for
# the serial device to ensure exclusive access to the device.
lock
# Disable Van Jacobson style TCP/IP header compression in both
# the transmit and the receive direction.
novj
# Disables the default behaviour when no local IP address is
# specified, which is to determine (if possible) the local IP
# address from the hostname.
noipdefault
# This option causes pppd to create such a default route when
# IPCP comes up, and delete it when the link is terminated.
defaultroute
disconnect '/usr/sbin/chat -e -f /etc/chatscripts/disconnect -v'
connect '/usr/sbin/chat -e -f /etc/chatscripts/provider -v'
/dev/usb/ttyACM0
user anything
password anything
#With this option, pppd will accept all control characters from the peer, including those marked in the receive asyncmap
receive-all
logfile "/var/log/pppd.log"
nobsdcomp
nodeflate



. Then I created a file /etc/chatscripts/provider and filled it with:


'' AT
TIMEOUT 240
OK 'AT+CGDCONT=1,"IP","web.omnitel.it"'
OK ATDT*99#
TIMEOUT 22
CONNECT ""

. Then I put "noauth" in place of "auth" in the file /etc/ppp/options.
Then I tried to connect with '# pon', but it couldn't be established.
I put the line 'debug' at the end of the file /etc/ppp/peers/provider
and this is /var/log/pppd.log:



AT
OK
AT+CGDCONT=1,"IP","web.omnitel.it"
OK
ATDT*99#
CONNECT
Serial connection established.
using channel 1
Using interface ppp0
Connect: ppp0 <--> /dev/usb/ttyACM0
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x9dc63d95> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x9dc63d95> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x11a80e6> <pcomp> <accomp>]
sent [LCP ConfAck id=0x1 <asyncmap 0x0> <auth pap> <magic 0x11a80e6> <pcomp> <accomp>]
sent [LCP EchoReq id=0x0 magic=0x9dc63d95]
sent [PAP AuthReq id=0x1 user="anything" password=<hidden>]
rcvd [LCP EchoRep id=0x0 magic=0x11a80f0]
rcvd [PAP AuthAck id=0x1]
PAP authentication succeeded
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0>]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0>]
rcvd [IPCP ConfNak id=0x1 <addr 83.225.139.145>]
sent [IPCP ConfReq id=0x2 <addr 83.225.139.145>]
rcvd [IPCP ConfAck id=0x2 <addr 83.225.139.145>]
rcvd [IPCP ConfReq id=0x2 <addr 192.168.100.101>]
sent [IPCP ConfAck id=0x2 <addr 192.168.100.101>]
Cannot determine ethernet address for proxy ARP
local IP address 83.225.139.145
remote IP address 192.168.100.101
Script /etc/ppp/ip-up started (pid 1873)
Script /etc/ppp/ip-up finished (pid 1873), status = 0x0
Terminating on signal 15
Connect time 0.3 minutes.
Sent 0 bytes, received 0 bytes.
Script /etc/ppp/ip-down started (pid 1904)
sent [LCP TermReq id=0x2 "User request"]
rcvd [LCP TermAck id=0x2 "User request"]
Connection terminated.
disconnect script failed
Waiting for 1 child processes...
script /etc/ppp/ip-down, pid 1904
Script /etc/ppp/ip-down finished (pid 1904), status = 0x0


. Does anybody have any idea about what the problem should
be and how to work it out?
Thanks indeed,
Rodolfo
 
Old 12-14-2005, 04:46 AM   #2
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
First, if you really want expert information, go there:
comp.protocols.ppp
James Carlson is helping thousands of people and he knows a lot about ppp. This problem is not at all related to debian.

Quote:
Terminating on signal 15
Connect time 0.3 minutes
Do you do a ctrl c or killall -15 pppd there or is this your problem?
If it is you, then try to stay at least 1 or 2 minutes to see if the server send you Authentification Failure messages.

I don't see any problem in your pppd.log and you should not be far from connecting.

What is the result of this:
*from the machine where the ppp client is*, not from your lan!

Code:
 ping 192.168.100.101
 
Old 12-15-2005, 09:36 AM   #3
Rodolfo Medina
Member
 
Registered: Nov 2004
Posts: 61

Original Poster
Rep: Reputation: 15
nx5000 wrote:

> Terminating on signal 15
> Connect time 0.3 minutes
>
> Do you do a ctrl c or killall -15 pppd there or is this your problem?

This is exactly my problem: the line 'Terminating on signal 15'.
The connect time 0.3 minutes is because I close the connection since
I cannot navigate.

> What is the result of this:
> *from the machine where the ppp client is*, not from your lan!
>
> Code:
> ping 192.168.100.101


# ping 192.168.100.101
connect: Network is unreachable

Thanks indeed,
Rodolfo
 
Old 12-15-2005, 02:29 PM   #4
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Oki

try to connect

*WAIT 1mn* Depending on the timing with gprs/ authentication of gprs which violates the ppp standard, it can be slow

And then post the output of

Code:
route -n
and of
Code:
ifconfig

I'm not here for several days , so either you have the chance to be helped by someone here or you explain clearly your problem on the mailing list I provided before (you have a lot of chance to solve the pb there)

ciao
 
Old 12-16-2005, 07:01 AM   #5
Rodolfo Medina
Member
 
Registered: Nov 2004
Posts: 61

Original Poster
Rep: Reputation: 15
Here are the outputs of '# route -n'
and '# ifconfig' during the connection:


gnu-linux:/home/rodolfo# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.100.101 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
0.0.0.0 192.168.100.101 0.0.0.0 UG 0 0 0 ppp0



gnu-linux:/home/rodolfo# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:464 errors:0 dropped:0 overruns:0 frame:0
TX packets:464 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:33604 (32.8 KiB) TX bytes:33604 (32.8 KiB)

ppp0 Link encap:Point-to-Point Protocol
inet addr:83.225.179.135 P-t-P:192.168.100.101 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:3 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:30 (30.0 b) TX bytes:40 (40.0 b)



. Bye,
Rodolfo
 
Old 12-19-2005, 05:38 AM   #6
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Quote:
Originally Posted by Rodolfo Medina


# ping 192.168.100.101
connect: Network is unreachable
Your route seem ok.

My idea to ping 192.168.100.101 was not good I think because this adress is a non routable adress and your ppp server can't contact it.

What gives this:
Code:
ping 66.249.93.104
(ip adress of www.google.com)

Then you have to get ppp to send you your dns servers, there is no line
ms-dns in your ppp transaction so maybe your /etc/resolv.conf was not updated and you can't use host names.
Try adding this line in the pppd option file:
Code:
usepeerdns
and then
Code:
ping www.google.com
 
Old 12-29-2005, 07:44 PM   #7
ankscorek
Member
 
Registered: Mar 2003
Distribution: Slackware10.2,SUSE,FC,RHL,Vector Linux,WHAX,PHLAK,bt4,ubuntu,debian,aptosid,backtrack,blackbuntu
Posts: 529

Rep: Reputation: 31
manually feed in the gateway address of your ISP

also try

#nslookup <isp nameserver IP address>

#dig yahoo.com
 
Old 04-06-2006, 10:48 AM   #8
Rodolfo Medina
Member
 
Registered: Nov 2004
Posts: 61

Original Poster
Rep: Reputation: 15
nx5000 wrote:

> if you really want expert information, go there:
> comp.protocols.ppp
> James Carlson is helping thousands of people and he knows a lot about ppp.
> This problem is not at all related to debian.


I did so, and seeems that the problem is solved now:
I wrote a complete report at:

http://lists.debian.org/debian-user/.../msg00017.html

. Bye,
Rodolfo
 
Old 04-06-2006, 11:29 AM   #9
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Thumbs up

Very nice of you to do a Howto. I may have to read it one day.

Cheers
 
  


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
Setting up internet connection with GPRS mobile phone Aasitus Linux - Networking 1 07-05-2004 05:54 PM
Internet connection via mobile phone? unholy Linux - Laptop and Netbook 3 01-28-2004 03:26 PM
How do I setup Phone <->PC <-Internet->PC <->Phone in Linux cmisip Linux - Networking 1 10-26-2003 12:58 PM
Installing Samsung Cell Phone for Internet Connection. ruahusker Linux - Newbie 4 10-19-2003 11:34 AM
Installing 3g Cellular Phone for Modem ruahusker Linux - Hardware 0 08-30-2003 09:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:23 AM.

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