Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 12-09-2008, 02:24 AM   #1
Registered: Mar 2006
Location: Dyserth, Wales
Distribution: Slackware 14.0, Slackware 14.1, Slackware-current
Posts: 306

Rep: Reputation: 33
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:

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

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

send (ATD*99***1#^M)
expect (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> <ms-dns1> <ms-dns3>]
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>]
sent [IPCP ConfAck id=0x0 <addr>]
rcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01>]
sent [IPCP ConfReq id=0x2 <addr> <ms-dns1> <ms-dns3>]
rcvd [IPCP ConfNak id=0x2 <addr> <ms-dns1> <ms-dns3>]
sent [IPCP ConfReq id=0x3 <addr> <ms-dns1> <ms-dns3>]
rcvd [IPCP ConfAck id=0x3 <addr> <ms-dns1> <ms-dns3>]
Cannot determine ethernet address for proxy ARP
local  IP address
remote IP address
primary   DNS address
secondary DNS address

*** 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
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:
Old 12-10-2008, 02:18 PM   #3
Registered: Mar 2006
Location: Dyserth, Wales
Distribution: Slackware 14.0, Slackware 14.1, Slackware-current
Posts: 306

Original Poster
Rep: Reputation: 33
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.


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 / openSUSE 2 01-04-2007 04:56 AM
Using Mobile phone as USB Modem in linux RRolleston Debian 1 05-19-2005 08:27 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:51 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration