LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 12-09-2008, 02:24 AM   #1
bogzab
Member
 
Registered: Mar 2006
Location: Dyserth, Wales
Distribution: Slackware 13.37, Slackware 14.0
Posts: 260

Rep: Reputation: 31
PPP interface through phone modem gives bad DNS (Vodafone UK mobile network)


I am 90% (I think, I hope) there to getting mobile internet working on my Slackware 12.1 laptop via a bluetooth connection with a mobile phone (Nokia E61i) that is internet-enabled on the UK Vodafone network. The final step of getting a DNS working on the connection is eluding me however. I have found plenty of advice on setting up a pppd peer file and a chat script which seem to work OK except that the network seems to be giving me a bad DNS so no browser can browse (unless you provide explicit IP addresses).

There is an error message "Cannot determine ethernet address for proxy ARP" shortly before the bad DNS seems to be provided, but I am not at all sure what I can do to fix this. I have tried both with and without "usepeerdns" in my peer definition file and have tried to put some other DNS addresses in a resolv.conf file in /etc/ppp which I found in a posting from others having DNS problems with the Vodafone network, but nothing seems to help.

The actual connection through to the internet provider does seem to work since I can monitor the bytes on the phone software and when I try and ping or connect in a browser I see bytes being sent and received - its just that they are not helpful bytes from a kosher DNS service.

My debug output during the PPP session looks like this:

Code:
root@BZ_Lenovo:/etc/ppp/peers# pppd call vodaf
send (ATZ^M)
expect (OK)
ATZ^M^M
OK
 -- got it

send (AT+CGDCONT=1,"IP","internet"^M)
expect (OK)
^M
AT+CGDCONT=1,"IP","internet"^M^M
OK
 -- got it

send (ATD*99***1#^M)
expect (CONNECT)
^M
ATD*99***1#^M^M
CONNECT
 -- got it

send (^M)
Serial connection established.
using channel 13
Using interface ppp0
Connect: ppp0 <--> /dev/rfcomm0
rcvd [LCP ConfReq id=0x0 <auth pap> <mru 1500> <asyncmap 0xa0000>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0>]
No auth is possible
sent [LCP ConfRej id=0x0 <auth pap>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0>]
rcvd [LCP ConfReq id=0x1 <mru 1500> <asyncmap 0xa0000>]
sent [LCP ConfAck id=0x1 <mru 1500> <asyncmap 0xa0000>]
sent [LCP EchoReq id=0x0 magic=0x0]
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
rcvd [LCP EchoRep id=0x0 magic=0x0]
rcvd [LCP ProtRej id=0x0 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15 03 2f]
Protocol-Reject for 'Compression Control Protocol' (0x80fd) received
rcvd [IPCP ConfReq id=0x0 <addr 10.6.6.6>]
sent [IPCP ConfAck id=0x0 <addr 10.6.6.6>]
rcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01>]
sent [IPCP ConfReq id=0x2 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
rcvd [IPCP ConfNak id=0x2 <addr 10.46.20.87> <ms-dns1 10.206.65.68> <ms-dns3 10.206.65.68>]
sent [IPCP ConfReq id=0x3 <addr 10.46.20.87> <ms-dns1 10.206.65.68> <ms-dns3 10.206.65.68>]
rcvd [IPCP ConfAck id=0x3 <addr 10.46.20.87> <ms-dns1 10.206.65.68> <ms-dns3 10.206.65.68>]
Cannot determine ethernet address for proxy ARP
local  IP address 10.46.20.87
remote IP address 10.6.6.6
primary   DNS address 10.206.65.68
secondary DNS address 10.206.65.68

*** Here I try some basic pinging of various hosts in another terminal
*** Phone shows bytes coming and going. I get "unknown host" errors.  
*** Browser cannot find home page unless it's IP address is provided
*** I type Contrlol-C and ev everything exits nicely.

Terminating on signal 2
Connect time 1.4 minutes.
Sent 1050 bytes, received 967 bytes.
sent [LCP TermReq id=0x2 "User request"]
rcvd [LCP TermAck id=0x2]
Connection terminated.
 
Old 12-09-2008, 01:54 PM   #2
ehawk
Senior Member
 
Registered: Jul 2003
Posts: 1,257

Rep: Reputation: 48
Seems like this might allow you to use a computer via your phone to get mobile internet:

http://www.getjar.com/products/6837/...uetoothEdition
 
Old 12-10-2008, 02:18 PM   #3
bogzab
Member
 
Registered: Mar 2006
Location: Dyserth, Wales
Distribution: Slackware 13.37, Slackware 14.0
Posts: 260

Original Poster
Rep: Reputation: 31
Query answered on UK Vodafone forum : here but some interest outside of just UK mobile operators DNS services since it turned out that it was important for me to manually change the /etc/resolv.conf file to correspond to the DNS addresses that the network operator provides. The pppd software seems to rewrite /etc/ppp/resolv.conf but not the one in the parent directory, which is of course safe but also ineffectual in giving you a working internet connection.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
I can't configure my 'Samsung SGH-A701' mobile phone as a modem in fedora 6 ferarri_saon Linux - Hardware 0 08-28-2008 06:56 AM
Samsung E900 mobile phone, GPRS modem & Slackware 10.1 norkers Linux - Hardware 5 02-25-2008 06:12 AM
LXer: Vodafone Mobile Connect Card Driver For Linux LXer Syndicated Linux News 0 11-05-2007 12:50 PM
Vodafone Mobile Connect (USB) in SUSE 10.2 1kyle Suse/Novell 2 01-04-2007 04:56 AM
Using Mobile phone as USB Modem in linux RRolleston Debian 1 05-19-2005 08:27 PM


All times are GMT -5. The time now is 02:14 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration