JustASchKid
Posts: 19
Joined: Thu Jun 04, 2015 12:56 am

Ethernet Couldnt Connect

Thu Jun 04, 2015 1:11 am

Hi i am currently doing a sch project using the Raspberry Pi 1 model B.
When i connect up the ethernet cable, there "new " lights came on but still no internet access when i went into the browser.
So i was wondering if there is a way for me to check if there is actually internet access like a program or a command.

Many thanks in advance

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

Re: Ethernet Couldnt Connect

Thu Jun 04, 2015 10:11 am

Connecting to the internet and connecting to the school's local area network are two different things. You have not said which is not working.

At a command prompt enter

Code: Select all

ifconfig
and report here what it returns.
Also

Code: Select all

ping 8.8.8.8
and

Code: Select all

ping google.com
Quis custodiet ipsos custodes?

JustASchKid
Posts: 19
Joined: Thu Jun 04, 2015 12:56 am

Re: Ethernet Couldnt Connect

Fri Jun 05, 2015 1:03 am

Hello drgeoff, i followed your instructions and gotten the following results

ifconfig

eth0 Link encap:Ethernet HWaddr b8:27:eb:a1:6f:cf
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1094 errors:0 dropped:0 overruns:0 frame:0
TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:202979 (198.2 KiB) TX bytes:6650 (6.4 KiB)

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: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)

wlan0 Link encap:Ethernet HWaddr 00:c1:41:38:09:36
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:9 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:333 (333.0 B) TX bytes:306 (306.0 B)

ping 8.8.8.8
connect: Network is unreachable

ping google.com
ping: unknown host google.com

Do enlighten me :?

User avatar
B.Goode
Posts: 10356
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Ethernet Couldnt Connect

Fri Jun 05, 2015 6:40 am

Your RPi does not have an IP address for either the ethernet or wlan interfaces, so it cannot use any network connections.

Are you connecting to a home broadband internet router, or to a network at a place of work, school, college or university?

If it is one of the latter, contact the network administrators or IT help desk and ask for assistance - it is unlikely that anyone here will be able to help with the details of that specific network.

If it is a 'home' network connection the RPi should configure itself 'automagically' when it starts up. Are you sure that the ethernet cable is working and is plugged in at both ends? Has it been successfully used with some other device on the same network? Do other devices (like PCs or Macs) simply plug in and run?

JustASchKid
Posts: 19
Joined: Thu Jun 04, 2015 12:56 am

Re: Ethernet Couldnt Connect

Fri Jun 05, 2015 9:11 am

B.Goode wrote:Your RPi does not have an IP address for either the ethernet or wlan interfaces, so it cannot use any network connections.

Are you connecting to a home broadband internet router, or to a network at a place of work, school, college or university?

If it is one of the latter, contact the network administrators or IT help desk and ask for assistance - it is unlikely that anyone here will be able to help with the details of that specific network.

If it is a 'home' network connection the RPi should configure itself 'automagically' when it starts up. Are you sure that the ethernet cable is working and is plugged in at both ends? Has it been successfully used with some other device on the same network? Do other devices (like PCs or Macs) simply plug in and run?
Dear B.Goode,

yes i am connecting to school's network. i have contacted the smile helpdesk(aka IT helpdesk). she also had no idea how to help me. thats why i am asking on the forum for advise. i think i will just ask my supervisor when he is back from leave. Thanks for sharing your wisdom with me :D

User avatar
DougieLawson
Posts: 39304
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Ethernet Couldnt Connect

Fri Jun 05, 2015 4:28 pm

Does your school network have MAC filtering?
Does your school network have a proxy?
Does your school network have a DHCP server or are all addresses assigned statically?

Ask your network admin on the helpdesk those questions and it may trigger her into understanding what she needs to do to allow your alien device to connect to her protected network.

When she asks "What's your MAC address?" the answer is "b8:27:eb:a1:6f:cf"
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Return to “Beginners”