Page 1 of 1
ethernet not working
Posted: Sun Feb 17, 2013 12:49 am
by mrkzam123
hi i'm 11, i'm new to linux and the pi. just today i ran the pi, it appears everythings working accept for the internet. ive tested the cable on my laptop and its connected to the internet. the link lights on the pi are flashing. after doing ifconfig im getting a inet adress of 127.0.0.1 im not getting a ip address assigned from the router.
Id appreciate help, thx
Re: ethernet not working
Posted: Sun Feb 17, 2013 4:33 am
by Mobius
First, the Pi does not connect itself to the internet without SW telling it to do so. Generally, folks run the desktop and use one of the available programs like Netsurf or Midori. It does sound like your ethernet is not getting an IP address from your router. If you are using Raspbian Wheezy, you can edit file "/etc/network/interfaces" to set up the ethernet connection. It's possible that the current setup looks like this:
If so, try replacing the "manual" with "dhcp". If it is already set to "dhcp", then you may need to set a static IP address for the Pi. You will need to know the base address of your router (usually something like 192.168.1.1). Then you can set eth0 as follows:
Code: Select all
iface eth0 inet static
address 192.168.1.66
netmask 255.255.255.0
gateway 192.168.1.1
The "gateway" is the base address of your router and the "address" is the same except for a different last number.
Re: ethernet not working
Posted: Mon Feb 18, 2013 9:14 pm
by mrkzam123
ok let me try this
Re: ethernet not working
Posted: Mon Feb 18, 2013 9:42 pm
by mrkzam123
i tried
but it says there is no such file or directory
Re: ethernet not working
Posted: Mon Feb 18, 2013 10:16 pm
by Cloudcentric
Raspbian "wheezy" should connect to the internet if the Router is issuing an IP address via DHCP.
Maybe it would be prudent to create a fresh install on the SD Card.
Also the cables should be plugged in prior to booting
http://debianarmpi.blogspot.com
Also are you use a 5V 1A or greater Power Supply ?
Re: ethernet not working
Posted: Mon Feb 18, 2013 10:18 pm
by drgeoff
mrkzam123 wrote:i tried
but it says there is no such file or directory
/
etc/network/interfaces
Typo only in your forum post or also when you tried the command on your RPi?
Re: ethernet not working
Posted: Tue Feb 19, 2013 1:13 pm
by mrkzam123
DOH! haha whoops. ill try with correct spelling now :p.
Re: ethernet not working
Posted: Tue Feb 19, 2013 1:20 pm
by mrkzam123
alright i got into my /etc/network/interfaces and it says this
Code: Select all
auto lo
iface lo inet loppback
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlano inet manual
wpa-roam /etc/wpa_supplicant.conf
iface default inet dhcp
what now?
Re: ethernet not working
Posted: Tue Feb 19, 2013 1:42 pm
by Spid
What is the output of iwconfig and ifconfig and lsusb ?
Re: ethernet not working
Posted: Tue Feb 19, 2013 9:59 pm
by mrkzam123
im sorry?
Re: ethernet not working
Posted: Wed Feb 20, 2013 11:03 am
by drgeoff
At the command prompt type 'iwconfig' (without the quotes) and press the Return key. Report here what the RPi puts on the screen. Then repeat for each of 'ifconfig' and 'lsusb'.
Re: ethernet not working
Posted: Thu Feb 21, 2013 12:00 am
by mrkzam123
i setup the static ip and it didnt work we reverted back to the original. here are the results from lsusb, ifconfig and iwconfig
Code: Select all
pi@raspberrypi ~ $ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 005: ID 0424:2504 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 006: ID 1241:1177 Belkin F8E842-DL Mouse
Bus 001 Device 007: ID 04f2:0116 Chicony Electronics Co., Ltd KU-2971/KU-0325 Keyboard
Bus 001 Device 008: ID 04fc:0c25 Sunplus Technology Co., Ltd SATALink SPIF225A
pi@raspberrypi ~ $ ifconfig
eth0 Link encap:Ethernet HWaddr b8:27:eb:14:2e:13
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:20 dropped:10 overruns:0 frame:10
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:2100 (2.0 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
pi@raspberrypi ~ $ iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
pi@raspberrypi ~ $
Re: ethernet not working
Posted: Thu Feb 21, 2013 12:19 am
by drgeoff
You appear to have a keyboard, a mouse and a USB-SATA adapter plugged in. And a USB hub?
Unplug the USB hub and the USB-SATA and reboot with keyboard, mouse and ethernet connected.
Then try ifconfig again.
Re: ethernet not working
Posted: Thu Feb 21, 2013 1:10 am
by mrkzam123
same thing was happening when it was just the keyboard and the mouse connected. we connected the hub so we could put the results over from the moniter too my laptop.