linux - Raspberry Pi slows down internet access for the whole network

08
2014-07
  • gnusouth

    Whenever my Raspberry Pi is connected to the network (via ethernet) the entire network is slowed to a crawl. On my main computer, ping times for google.com go from ~10ms to ~200ms and it takes forever to load web pages. Connections are also slow on the Pi, with an apt-get update showing pathetic speeds in the order of 1KB/s. Turning off the Pi completely removes the drag from the network. Interestingly, the local network appears to be fine, with scp copying files at reasonable rates; around 4.5MB/s to the Pi.

    I've tried static and dynamic IP addresses for the Pi, but both have the same problems. Switching from Raspbian to Arch also had no effect.

    I've checked the connection's duplex with dmesg | grep -i duplex, which shows that the Pi's connection is running at 100Mbps, full-duplex, as expected.

    My modem/router is a Billion 7404VNPX (an Australian thing); relatively high-end, albeit a bit buggy at times (it will occasionally delete all its firewall settings). It assigns IPs in the range 192.168.1.1 to 192.168.1.20 and has 192.168.1.254 as its own IP. When I assign static IPs I tend to use the 192.168.1.200 area. I recently tested the connection with the Pi plugged straight into the modem (rather than via a wall socket) and it managed to crash it entirely!

    I am starting to suspect that my modem isn't as reliable as I previously thought, so I'll try and get onto someone else's wired network in the next few days.

  • Answers
  • Peter

    You talk about it slowing the entire network and then just reference a ping to Google. There is a big difference between LAN and WAN. Assuming you are just having slowness over your WAN to external sites, have you ruled out that the Pi is downloading anything? It tends to download updates/install packages on a fresh install of many applications.

  • JohnnyVegas

    Try using a crossover cable and connect it directly to your computer using static IP - If the scp is still slow, it's either a configuration problem or the network adapter on the PI is faulty.


  • Related Question

    windows - Enable networking on raspberry pi - Internet sharing with Win7
  • Kyle

    I do not have physical access to the wireless router that I use (shared living agreement), so I cannot connect my RasPi (Model B) to the router via Ethernet. However, I am running a Windows 7 64-bit machine that connects over WiFi and has an unused Ethernet port.

    I've set up Internet sharing and bound the Ethernet port to be the device that shares the Internet, and I'm running Debian Wheezy (2012-07-15 build) on my RasPi on an 8 GB SD card. However, when I plug the Ethernet cable into the RasPi and my local Win7 box, nothing seems to work on the RasPi side.

    I get tx/link lights on my Windows machine as well as the RasPi, but when I run ifconfig, I get eth0 with 12 tx packets, 0 errors, 0 dropped, etc - and no IP bound to it.

    I've tried editing /cat/networking/interfaces and tried to enable eth1-9 (this seems to be a weird bug that some users report where eth0 isn't the properly bound device), but all fail when I do sudo /etc/init.d/networking restart except eth0.

    Google has failed me so far - what's the next step in getting wired/shared Internet working? Bridging the devices on the Windows machine?

    Thanks!


  • Related Answers
  • Kyle

    Figured it out - I had to edit /etc/network/interfaces with this info:

    auto lo eth0
    iface lo inet loopback
    iface eth0 inet dhcp
    

    The first line by default was auto lo, so I added the eth0 and restarted the networking services and it worked perfectly!