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.