LinuxQuestions.org
Help answer threads with 0 replies.
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 06-24-2007, 04:21 PM   #1
tomva
Member
 
Registered: May 2006
Distribution: Fedora
Posts: 45

Rep: Reputation: 15
Laptop + cell phone (GPRS) modem


Hello all-

Sorry for the long post. Short story: I can't get wvdial/ppp to work for my laptop + cell phone. Laptop: Tecra M4 running FC5. Phone: Motorola Ming. Carrier: T-Mobile.

The cell phone itself is able to browse the Internet using the in-phone browser.

Theoretically, I should be able to hook up the phone to my laptop via the USB cable, and initiate a connection. I've spent a day or two googling and tracking down settings, and I think I have it almost working, but not quite. I use wvdial to connect to the phone, and it launches ppp to set up the IP route. I think things are falling down with ppp. I can't ping the P-t-P IP address, nor can I seem to get any traffic over the connection at all.

Here is my /etc/wvdial.conf file:
Code:
[Dialer Defaults]
Modem = /dev/ttyACM0
Baud = 460800
Init2 = ATZ
Phone = *99***1#
Username = foo
Password = bar
Stupid Mode = 1
It's all one section (just the default, I don't have any other ppp or wvdial uses right now).


Here is my /etc/ppp/options file:
Code:
lcp-echo-failure 0
lcp-echo-interval 0
nodetach
debug
crtscts
local
noipdefault
defaultroute
usepeerdns
novj
nobsdcomp
novjccomp
nopcomp
noaccomp
noauth
:10.0.0.1
Basically I've turned off all compression, and I'm trying to pick up the phone's DNS servers and use it as the default gateway.


Here is my /etc/ppp/peers/wvdial file:
Code:
noauth
name wvdial
defaultroute
usepeerdns
It looks like it is a bit redundant with the basic options file.


So I should be able to start wvdial and have everything work. Here is the output when I run wvdial (some noise removed, you can see it ultimately fails):
Code:
--> WvDial: Internet dialer version 1.54.0
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Modem initialized.
--> Sending: ATDT*99***1#
--> Waiting for carrier.
ATDT*99***1#
CONNECT
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Sun Jun 24 14:11:47 2007
--> Using interface ppp0
--> Authentication (PAP) started
--> Authentication (PAP) successful
--> local  IP address 10.173.11.120
--> remote IP address 10.0.0.1
--> primary   DNS address 66.94.9.120
--> secondary DNS address 66.94.25.120
--> Script /etc/ppp/ip-up run successful
--> Default route Ok.
--> warning, can't find address for `www.suse.de`
--> warning, address lookup does not work
--> Nameserver (DNS) failure, the connection may not work.
--> Connected... Press Ctrl-C to disconnect
Here are the /var/log/messages entries (no errors here):
Code:
Jun 24 14:16:05 tecra-m4 pppd[5933]: pppd 2.4.3 started by root, uid 0
Jun 24 14:16:05 tecra-m4 pppd[5933]: Using interface ppp0
Jun 24 14:16:05 tecra-m4 pppd[5933]: Connect: ppp0 <--> /dev/ttyACM0
Jun 24 14:16:11 tecra-m4 pppd[5933]: Remote message: Welcome to Motorola Ezx Software Modem!
Jun 24 14:16:11 tecra-m4 pppd[5933]: PAP authentication succeeded
Jun 24 14:16:15 tecra-m4 pppd[5933]: local  IP address 10.169.59.239
Jun 24 14:16:15 tecra-m4 pppd[5933]: remote IP address 10.0.0.1
Jun 24 14:16:15 tecra-m4 pppd[5933]: primary   DNS address 66.94.9.120
Jun 24 14:16:15 tecra-m4 pppd[5933]: secondary DNS address 66.94.25.120
Here is the routing table that results (netstat -nr):
[CODE]
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
10.0.0.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
0.0.0.0 10.0.0.1 0.0.0.0 UG 0 0 0 ppp0
[/CODE}

And here is the result of ifconfig:
Code:
ppp0      Link encap:Point-to-Point Protocol
          inet addr:10.169.59.239  P-t-P:10.0.0.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:10 errors:0 dropped:0 overruns:0 frame:0
          TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:310 (310.0 b)  TX bytes:2123 (2.0 KiB)
I can't ping 10.0.0.1, although I can ping 10.169.59.239 just fine.

Any ideas? It seems like I'm connecting with the remote server okay, but somehow my local client isn't able to set up an Internet route.
 
  


Reply

Tags
networking, ppp, route



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
How to solve the ppp problems with GPRS cell phone Namhoon Linux - Wireless Networking 0 02-14-2007 08:38 AM
cell phone as modem John2005 Linux - Networking 1 08-05-2006 09:36 PM
Use cell phone as modem Oxagast Linux - Software 4 05-02-2006 12:16 AM
Using my Gprs motorola cell phone as a modem cwahoyes Linux - Networking 4 12-15-2004 03:02 AM
using a gprs cell phone to connect to the internet cwahoyes Linux - Newbie 3 10-03-2004 07:07 AM

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

All times are GMT -5. The time now is 03:36 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