Friday, June 10, 2005

Using the Nokia 3650 for internet access -Linux FC3

Carrier: Cingular
Plan: $19.99 monthly internet
Phone: Nokia 3650
OS: Fedora Core 3 - FC3
Bluetooth device: Kensington USB adapter


The output from a successfull GPRS ppp connection:

[root@a1a peers]# pppd call gprs
--> WvDial: Internet dialer version 1.54.0
--> Initializing modem.
--> Sending: ATH
NO CARRIER
ATH
OK
--> Sending: ATE1
ATE1
OK
--> Sending: AT+CGDCONT=1,"IP","isp.cingular","",0
AT+CGDCONT=1,"IP","isp.cingular","",0
OK
--> Modem initialized.
--> Sending: ATD*99#
--> Waiting for carrier.
ATD*99#
CONNECT
~[7f]}#@!}!} } }2}#}$@#}!}$}%\}"}&} }*} } g}%~
--> Carrier detected. Waiting for prompt.
~[7f]}#@!}!} } }2}#}$@#}!}$}%\}"}&} }*} } g}%~
--> PPP negotiation detected.
Serial connection established.
using channel 6
Using interface ppp0
Connect: ppp0 <--> /dev/modem
sent [LCP ConfReq id=0x1 ]
rcvd [LCP ConfRej id=0x1 ]
sent [LCP ConfReq id=0x2 ]
rcvd [LCP ConfAck id=0x2 ]
rcvd [LCP ConfReq id=0x0 ]
sent [LCP ConfAck id=0x0 ]
sent [PAP AuthReq id=0x1 user="ISPDA@CINGULARGPRS.COM" password="CINGULAR1"]
rcvd [PAP AuthAck id=0x1 ""]
PAP authentication succeeded
sent [CCP ConfReq id=0x1 ]
sent [IPCP ConfReq id=0x1 ]
rcvd [IPCP ConfReq id=0x0 ]
sent [IPCP ConfNak id=0x0 ]
rcvd [LCP ProtRej id=0x0 80 fd 01 01 00 0c 1a 04 78 00 18 04 78 00]
rcvd [IPCP ConfNak id=0x1 ]
sent [IPCP ConfReq id=0x2 ]
rcvd [IPCP ConfReq id=0x1 ]
sent [IPCP ConfAck id=0x1 ]
rcvd [IPCP ConfAck id=0x2 ]
not replacing existing default route to eth0 [192.168.1.1]
local IP address 166.138.237.249
remote IP address 10.0.0.1
primary DNS address 66.209.10.201
secondary DNS address 66.209.10.202
Script /etc/ppp/ip-up started (pid 5672)
Script /etc/ppp/ip-up finished (pid 5672), status = 0x0
Terminating on signal 2.
Script /etc/ppp/ip-down started (pid 5797)
sent [LCP TermReq id=0x3 "User request"]
rcvd [LCP TermAck id=0x3]
Connection terminated.
Connect time 31.6 minutes.
Sent 62981 bytes, received 152749 bytes.


Now from another xterminal you can rin ifconfig and look for the new interface - ppp0
ppp0 Link encap:Point-to-Point Protocol
inet addr:166.138.195.72 P-t-P:10.0.0.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:64 (64.0 b) TX bytes:116 (116.0 b)



After this connection was made there are 2 options:
1) replace my default gateway with 10.0.0.1.
route del default gw 192.168.1.1; route add default gw 10.0.0.1
or
2) add a route to get to the cingular gateway for my phone (ip 66.209.11.61 -taken from my phone settings)
route add -net 66.209.11.0 netmask 255.255.255.0 dev ppp0

Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.1 * 255.255.255.255 UH 0 0 0 ppp0
66.209.11.0 * 255.255.255.0 U 0 0 0 ppp0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0


tested by:
ping 66.209.11.61
and
browsing to 64.233.161.99 (this is www.1.google.com)

Works OK except for DNS.
Post a Comment