element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum RPI Network working but no internet
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 16 replies
  • Answers 1 answer
  • Subscribers 676 subscribers
  • Views 5013 views
  • Users 0 members are here
  • pi_networking
Related

RPI Network working but no internet

Former Member
Former Member over 10 years ago

My Pi won't connect to the internet. Everything was fine until my TalkTalk Huawei router died and I replaced it with a TP-Link TL-WR841ND. Now the networking is OK but no internet.

 

The Pi gets it's IP settings at boot time through 'ip=dhcp' in cmdline.txt from the WR841. It is a reserved address on the router so it always gets the same, 10.96.19.99 (as was with the Huawei). There are no IP conflicts on the network.

That works fine. The Pi boots over the network from a share on my NAS drive - that also works without problem.

I can access all of the shared resources on my network, NAS shares, printers etc.

The various PCs, Xbox, tablets and smart phones in the house, some of which are WiFi others are hard wired, have total internet access, no problem.

Now it gets weird; I can connect to the configuration pages on the router from the Pi but it is so desperately slow it's unreal. Perhaps two minutes to make the connection then probably the same for each page. It's almost instantaneous from a PC.

And, of course, no internet access whatsoever. apt-get fails to find the various archive sites and none of the browsers I have loaded will access web pages not on my network. Web pages on the network all appear to suffer the same speed issues as WR841.

The only thing I have noticed that I don't quite understand is that it has registered the router as a name server, which it isn't but then I access the local web pages by ip address rather than by name so it shouldn't need to look for a name server.

 

Does anyone out there have any bright ideas about what may be going on. I'm stumped!!!

  • Sign in to reply
  • Cancel
  • clem57
    0 clem57 over 10 years ago

    Please do the following test and post output here:

    ifconfig

    ping 10.96.19.99

    ping 8.8.8.8


    Thanks,

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to clem57

    It's a bit messy but here are the results. Pinged the router too for good measure.

    What's 8.8.8.8? that's a new one on me.

     

     

    ifconfig

     

    eth0 Link encap:Ethernet HWaddr b8:27:eb:6c:3b:7f

     

    inet addr:10.96.19.99 Bcast:10.96.19.255 Mask:255.255.255.0

     

    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

     

    RX packets:173729 errors:0 dropped:18 overruns:0 frame:0

     

    TX packets:115202 errors:0 dropped:0 overruns:0 carrier:0

     

    collisions:0 txqueuelen:1000

     

    RX bytes:171502110 (163.5 MiB) TX bytes:61690306 (58.8 MiB)

     

    lo Link encap:Local Loopback

     

    inet addr:127.0.0.1 Mask:255.0.0.0

     

    UP LOOPBACK RUNNING MTU:65536 Metric:1

     

    RX packets:1506 errors:0 dropped:0 overruns:0 frame:0

     

    TX packets:1506 errors:0 dropped:0 overruns:0 carrier:0

     

    collisions:0 txqueuelen:0

     

    RX bytes:112928 (110.2 KiB) TX bytes:112928 (110.2 KiB)

     

     

     

     

    PING 10.96.19.99 (10.96.19.99) 56(84) bytes of data.

     

    64 bytes from 10.96.19.99: icmp_req=1 ttl=64 time=0.177 ms

     

    64 bytes from 10.96.19.99: icmp_req=2 ttl=64 time=0.142 ms

     

    64 bytes from 10.96.19.99: icmp_req=3 ttl=64 time=0.147 ms

     

    64 bytes from 10.96.19.99: icmp_req=4 ttl=64 time=0.152 ms

     

    64 bytes from 10.96.19.99: icmp_req=5 ttl=64 time=0.145 ms

     

    64 bytes from 10.96.19.99: icmp_req=6 ttl=64 time=0.146 ms

     

    --- 10.96.19.99 ping statistics ---

     

    6 packets transmitted, 6 received, 0% packet loss, time 4995ms

     

    rtt min/avg/max/mdev = 0.142/0.151/0.177/0.017 ms

     

     

     

    PING 10.96.19.102 (10.96.19.102) 56(84) bytes of data.

     

    64 bytes from 10.96.19.102: icmp_req=1 ttl=64 time=3.79 ms

     

    64 bytes from 10.96.19.102: icmp_req=2 ttl=64 time=0.548 ms

     

    64 bytes from 10.96.19.102: icmp_req=3 ttl=64 time=0.528 ms

     

    64 bytes from 10.96.19.102: icmp_req=4 ttl=64 time=0.532 ms

     

    64 bytes from 10.96.19.102: icmp_req=5 ttl=64 time=0.545 ms

     

    64 bytes from 10.96.19.102: icmp_req=6 ttl=64 time=0.626 ms

     

    --- 10.96.19.102 ping statistics ---

     

    6 packets transmitted, 6 received, 0% packet loss, time 4999ms

     

    rtt min/avg/max/mdev = 0.528/1.094/3.790/1.206 ms

     

     

     

    PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.

     

    64 bytes from 8.8.8.8: icmp_req=1 ttl=53 time=16.5 ms

     

    64 bytes from 8.8.8.8: icmp_req=2 ttl=53 time=15.5 ms

     

    64 bytes from 8.8.8.8: icmp_req=3 ttl=53 time=16.9 ms

     

    64 bytes from 8.8.8.8: icmp_req=4 ttl=53 time=15.6 ms

     

    64 bytes from 8.8.8.8: icmp_req=5 ttl=53 time=16.2 ms

     

    --- 8.8.8.8 ping statistics ---

     

    5 packets transmitted, 5 received, 0% packet loss, time 4003ms

     

    rtt min/avg/max/mdev = 15.570/16.214/16.940/0.539 ms

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to Former Member

    Ahhh. Google public DNS. So something's getting out.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • clem57
    0 clem57 over 10 years ago in reply to Former Member

    Yes you are right. What I would suggest is forcing the DNS address to 8.8.8.8 for nameserver. Looking at http://www.heystephenwood.com/2013/06/use-your-raspberry-pi-as-dns-cache-to.html, we have a problem of DNS right now.

    So do:

     

    Enter the following command to edit the resolv.conf file.

    sudo nano /etc/resolv.conf

    Enter the follow Google public dns server IP address.

    nameserver 8.8.8.8
    nameserver 8.8.4.4

    Press CTRL-X to exit but remember to save the file by accepting the changes.

     

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • clem57
    0 clem57 over 10 years ago in reply to Former Member

    BTW, I had a feeling about this and had to prove it.

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • rew
    0 rew over 10 years ago in reply to clem57

    Many modern routers will run a caching nameserver for the local network. Also it will enter dynamic hosts into its local nameserver. So when a PC that calls itself "JohnsPC" boots and gets a dynamic IP address, it can be reached from the local network under that name.

     

    That said, it looks as if your router advertises the feature, but then doesn't properly implement it.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to clem57

    Clem,

     

    thanks for the suggestions. This opens up a few possibilities that I will work on but it possibly opens up more questions.

    Roger's response is interesting and very plausible  but it still leaves the question as to why everything else on the network works except the Pi.

     

    What is different between raspbian and everything else; Windows XP & 7, Xbox, Wii and several flavours of android.

     

    Still bemused,

     

    John.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to rew

    Roger,

     

    Thanks for the suggestion but it doesn't fully provide an answer. If what you say is correct, why does everything else work except the Pi? I'm not saying you're wrong but I'm struggling to understand why the Pi behaves differently to the several other operating systems I have running.

     

    John

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to Former Member

    Clem,

    It appears that the answer was easier than is seems but, to me, there is a dark side.

    Your suggestion worked and for that I thank you, but then I started digging further;

     

    I found a check box that I'd missed in the router WAN settings entitled 'Use These DNS Servers'. The box was unchecked.

    The Primary and secondary DNS ip addresses referred to point to my ISPs name servers.  I reverted 'resolve.conf' to it's original settings and checked the box. Then everything came to life.

    Great for the Pi....

    BUT

    1)Why did everything else work except for the Pi.

    2)Why do I need to consult an external name server to access nodes by ip address within my own private network.

     

    It's great that it's working but I'd still like to understand what's going on.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to Former Member

    Roger,

     

    Please refer to my last reply to Clem.

     

    I thank you both for your help as I now have a working system. What I don't have is a full understanding of why and that frustrates me.

     

    John.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube