justincr83
Posts: 4
Joined: Fri Jan 08, 2016 11:00 pm

RPI 2 Model B lan / gigabit problems

Fri Jan 08, 2016 11:11 pm

Hi guys, this is my first post here, and my second os instalation on rpi...
first time after i got the rpi i installed osmc added a few repositoies and it worked like a charm. i steamed a lot of channels etc.
now i want to build my own NAS using the rpi, and i ran into a problem.
first i took the noobs version from here: https://www.raspberrypi.org/downloads/ did all the things, but the internet is not working. it took 5 minutes to open google.com, i tried sudo apt-get update, not a chance
then i went back to https://www.raspberrypi.org/downloads/ where i got raspbian, followed the instruction, booted, same problem....
in both cases i can connect over putty without problems, so the network is up and running.

pi@raspberrypi:~ $ ifconfig
eth0 Link encap:Ethernet HWaddr b8:27:eb:9b:71:76
inet addr:192.168.1.6 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::47ce:b863:93be:c490/64 Scope:Link
inet6 addr: 2a02:2f01:6025:c200:1bd5:8f5d:cfac:f755/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:845 errors:0 dropped:0 overruns:0 frame:0
TX packets:474 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:323603 (316.0 KiB) TX bytes:60359 (58.9 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:200 errors:0 dropped:0 overruns:0 frame:0
TX packets:200 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:16656 (16.2 KiB) TX bytes:16656 (16.2 KiB)

i have internet fiberlink 500mb/s with a 465mb/s speed test result...
i check the cable connection with my laptop and works at full speed...

what is wrong with my pi?

thanks!

justincr83
Posts: 4
Joined: Fri Jan 08, 2016 11:00 pm

Re: RPI 2 Model B lan / gigabit problems

Sat Jan 09, 2016 10:43 am

well, i changed the os sd card, with the one with osmc already intalled, the one that i used first time when i bought the rpi, and i run a simple download test. the download speed was pretty good... 11mb/s. So there is nothing wrong with the hardware...
the problem is caused by raspbian software settings... anyone had the same problem?

thanks!

User avatar
PeterO
Posts: 5880
Joined: Sun Jul 22, 2012 4:14 pm

Re: RPI 2 Model B lan / gigabit problems

Sat Jan 09, 2016 10:49 am

The on board Ethernet interface is connected to the CPU via a USB interface, so it performs as the equivalent of a USB connected dongle. The speed is limited by the USB interface not the Ethernet interface.

However it sounds like you could have a misconfiguration in DNS settings.

PeterO
Last edited by PeterO on Sat Jan 09, 2016 10:53 am, edited 1 time in total.
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

drgeoff
Posts: 10765
Joined: Wed Jan 25, 2012 6:39 pm

Re: RPI 2 Model B lan / gigabit problems

Sat Jan 09, 2016 10:50 am

Did you leave Raspbian to get its IP settings by DHCP or did you try to manually configure to static?

drgeoff
Posts: 10765
Joined: Wed Jan 25, 2012 6:39 pm

Re: RPI 2 Model B lan / gigabit problems

Sat Jan 09, 2016 10:53 am

PeterO wrote:The on board Ethernet interface is connected to the CPU via a USB interdace, so it performs as the equivalent of a USB connected dongle. The speed is limited by the USB interface not the Ethernet interface.

PeterO
Very true but the OP's problem is not low speed. He has no speed from the internet. :)

User avatar
PeterO
Posts: 5880
Joined: Sun Jul 22, 2012 4:14 pm

Re: RPI 2 Model B lan / gigabit problems

Sat Jan 09, 2016 10:55 am

drgeoff wrote: Very true but the OP's problem is not low speed. He has no speed from the internet. :)
Yes I realised this when I read it again, hence my additional comment about possible DNS problems. If DNS is not working properly it can introduce long timeouts into name resolution that can look like slow downloading.

PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

justincr83
Posts: 4
Joined: Fri Jan 08, 2016 11:00 pm

Re: RPI 2 Model B lan / gigabit problems

Sat Jan 09, 2016 2:30 pm

it is a standard installation without any other configurations. just copy the files on sd, install and boot the rpi....
the same thing i did with osmc, os, but there i have like 11mb/s....
raspbian has it's own standard installation settings for ethernet.

PS: using the same cable and router port, i plug in my laptop and i have 450mb/s download speed, so the network is configured correctly....

justincr83
Posts: 4
Joined: Fri Jan 08, 2016 11:00 pm

Re: RPI 2 Model B lan / gigabit problems

Sun Jan 10, 2016 11:11 am

nothing? no one?

drgeoff
Posts: 10765
Joined: Wed Jan 25, 2012 6:39 pm

Re: RPI 2 Model B lan / gigabit problems

Sun Jan 10, 2016 11:40 am

What do you get from

Code: Select all

ping 8.8.8.8
and from ping

Code: Select all

google.com

danjperron
Posts: 3503
Joined: Thu Dec 27, 2012 4:05 am
Location: Québec, Canada

Re: RPI 2 Model B lan / gigabit problems

Sun Jan 10, 2016 1:12 pm

Your Pi is IPv4 and IPv6.

What is your router address ?

could you display the contents of

/etc/network/interfaces
/etc/dhcpcd.conf
/etc/resolv.conf
/etc/resolvconf.conf

and like the last post, What does the Pi respond when you type

Code: Select all

ping 8.8.8.8
ping google.com
if ping 8.8.8.8 works and you are on IPv4, you could try to add google dns server into /etc/resolvconf.conf

Code: Select all

name_servers=8.8.8.8
name_servers_append=8.8.4.4
If the ping 8.8.8.8 doesn't work then you have a problem with your gateway settings.

QuietZone
Posts: 89
Joined: Sat Dec 05, 2015 7:13 pm

Re: RPI 2 Model B lan / gigabit problems

Sun Jan 10, 2016 1:21 pm

FWIW - and not particularly related to how this thread has developed, but in regards to the issue PeterO raised - people have noted in the past that although using a GigaBit ethernet device on the Pi won't result in full GigaBit performance (because, as we all know, the USB 2.0 is limited to 480Mb max), it does result in better performance than the standard 100Mb ethernet port. So, it can be worth doing, if you really need whatever performance boost you can get.

I.e., at least in theory, you get something between the 100Mb of the standard ethernet port and the 480 Mb USB 2.0 maximum.
"If you haven't got anything nice to say about anybody come sit next to me." — Alice Roosevelt Longworth

fruitoftheloom
Posts: 23337
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: RPI 2 Model B lan / gigabit problems

Sun Jan 10, 2016 1:59 pm

QuietZone wrote:FWIW - and not particularly related to how this thread has developed, but in regards to the issue PeterO raised - people have noted in the past that although using a GigaBit ethernet device on the Pi won't result in full GigaBit performance (because, as we all know, the USB 2.0 is limited to 480Mb max), it does result in better performance than the standard 100Mb ethernet port. So, it can be worth doing, if you really need whatever performance boost you can get.

I.e., at least in theory, you get something between the 100Mb of the standard ethernet port and the 480 Mb USB 2.0 maximum.
fyi the RPi 1B+ & Rpi 2B has significant I/O gains using a USB3 USB Gigabit Ethernet Adapter:

http://www.midwesternmac.com/blogs/jeff ... networking
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

QuietZone
Posts: 89
Joined: Sat Dec 05, 2015 7:13 pm

Re: RPI 2 Model B lan / gigabit problems

Sun Jan 10, 2016 2:03 pm

fyi the RPi 1B+ & Rpi 2B has significant I/O gains using a USB3 USB Gigabit Ethernet Adapter:
Yeah, that's my point.
"If you haven't got anything nice to say about anybody come sit next to me." — Alice Roosevelt Longworth

danjperron
Posts: 3503
Joined: Thu Dec 27, 2012 4:05 am
Location: Québec, Canada

Re: RPI 2 Model B lan / gigabit problems

Sun Jan 10, 2016 2:20 pm

FWIW - and not particularly related to how this thread has developed, but in regards to the issue PeterO raised - people have noted in the past that although using a GigaBit ethernet device on the Pi won't result in full GigaBit performance (because, as we all know, the USB 2.0 is limited to 480Mb max), it does result in better performance than the standard 100Mb ethernet port. So, it can be worth doing, if you really need whatever performance boost you can get.
Yes with a dedicated wifi-N router I was able to get 125mbs on it. Not anymore ;-/ . Neighbors upgrade their wifi.

if you are interested about speed comparison.

viewtopic.php?p=847076#p847076

QuietZone
Posts: 89
Joined: Sat Dec 05, 2015 7:13 pm

Re: RPI 2 Model B lan / gigabit problems

Sun Jan 10, 2016 2:52 pm

What does WiFi have to do with any of this? You'll never get GigaBit performance from WiFi.
"If you haven't got anything nice to say about anybody come sit next to me." — Alice Roosevelt Longworth

danjperron
Posts: 3503
Joined: Thu Dec 27, 2012 4:05 am
Location: Québec, Canada

Re: RPI 2 Model B lan / gigabit problems

Sun Jan 10, 2016 3:04 pm

What does WiFi have to do with any of this? You'll never get GigaBit performance from WiFi.
You are correct but I was able to get better performance than the standard 100mbs ethernet.

Also if it is about my comparison chart you forget that I did include the gigabit speed of the Banana Pi in there.
Even with a USB gigabit dongle you can't run as fast because you are limited by the USB2.0 speed which is 480mbs.

Return to “Troubleshooting”