ghatch2
Posts: 11
Joined: Tue Jul 15, 2014 4:07 pm

Ethernet/Internet not working

Tue Jul 15, 2014 4:36 pm

Yesterday I was able to get the RPi board connected to the internet using both an Ethernet cable and then finally using a wifi dongle. I was able to pull up websites on Midori as well as connect using SSH yesterday. But today I can't do either of things, all I can do is ping (I tried pinging to http://www.google.com to see if it works and it seems to be--less than 15ms). Only the Ethernet cable lights up the FDX, LNK, 100 lights on the board.

Right now when I run iwconfig I get the following :

Code: Select all

 
wlan0    IEEE  802.11bgn  ESSID:"mynetwork"  Nickname:"<WIFI@REALTEX>"
             Mode:Managed  Frequency:2.462 GHz  Access Pint: 00:1A:1E:8D:EC:22
             Bit Rate:65 Mb/s    Sensitivity 0/0
             Retry:off      RTS thr:off    Fragment thr:off
             Link Quality = 97/100   Signal level =69/100     Noise Level=0/100
             Rx invalid nwid:0     Rx invalid crypt:0    Rx invalid frag:0
             Tx excessive retries:0   Invalid misc:0   Missed beacon:0

lo          no wireless extensions
eth0      no wireless extensions
Also note for me to do the iwconfig I only have the wifi dongle plugged in.

User avatar
RaTTuS
Posts: 10578
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Ethernet/Internet not working

Wed Jul 16, 2014 9:10 am

what does
cat /etc/network/interfaces
say
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

eone
Posts: 10
Joined: Thu Jul 11, 2013 3:49 am

Re: Ethernet/Internet not working

Wed Jul 16, 2014 10:10 am

I suggest you sort the ethernet connection first.

Ensure ethernet cable is firmly connected to RPi and router/hub

Disconnect WIFI adaptor

Type: ip link show eth0

Type: ip addr show eth0

Type: ip route show

Show us the output of the three commands

ghatch2
Posts: 11
Joined: Tue Jul 15, 2014 4:07 pm

Re: Ethernet/Internet not working

Wed Jul 16, 2014 2:21 pm

cat /etc/network/interfaces reads:

Code: Select all

auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
and looking at wpa_supplicant:

Code: Select all

ctrl_interface=DIR=/var/run/wpa_supplicant   GROUP=netdev
update_config=1

network={
                ssid = "mynetwork"
                key_mgmt=NONE
                auth_alg=OPEN
}

ghatch2
Posts: 11
Joined: Tue Jul 15, 2014 4:07 pm

Re: Ethernet/Internet not working

Thu Jul 17, 2014 3:53 pm

I figured it out. For anyone else having issues similar to this I added the line

Code: Select all

auto wlan0
under the "auto lo" line. This enabled me to connect using SSH. As for the internet issue I just needed to register the RPi board on our network.

Return to “Troubleshooting”