foxint
Posts: 60
Joined: Wed Mar 23, 2016 3:16 am

Pi 3Cannnot connect toe intern with Ethernet cable

Sun Jun 28, 2020 1:12 am

Sirs/Madams.

I have been trying to get my Pi3 connected to the internet via ethernet. It used to work out of the box and now it is not working.

I have tried to find step-by-step instructions for ETHERNET (not wi-fi) to connect to the router but everyone seems to want to complicate the task.

It was been a few weeks off and on and I am very upset.

I think part of the problem is sudo mcedit etc/wpa_supplicant/wpa_supplicant.conf – does not work.

I also do not seem to have an ethernet option when I type in ifconfig.

Can any smart caring person help??
Attachments
2020-06-28-ifconfig-small-small-small.jpg
2020-06-28-ifconfig-small-small-small.jpg (166.42 KiB) Viewed 446 times

W. H. Heydt
Posts: 12430
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Sun Jun 28, 2020 2:36 am

See that second line under where you typed in ifconfig? Where is says "inet 192.168.1.11"? That's your IP address. So long as you are running with DHCP, that address was assigned by the DHCP server in your router.

As a test, enter the command "ping 8.8.8.8" (you can stop it with Ctrl-C). If that gets a response, you're connected.

foxint
Posts: 60
Joined: Wed Mar 23, 2016 3:16 am

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Sun Jun 28, 2020 2:51 am

Thank you.

Yes the IP Address is 192.181.1.11 and I have pinged 8.8.8.8… and there was a very long response. But there is the BIG I have not idea.

There is no internet connections.

In the screen shot, should there not be something about Ethernet????

Sorry for being thick

jbudd
Posts: 1358
Joined: Mon Dec 16, 2013 10:23 am

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Sun Jun 28, 2020 3:19 am

I think part of the problem is sudo mcedit etc/wpa_supplicant/wpa_supplicant.conf – does not work.
wpa_supplicant is for wifi only so it should be irrelevant.
But the reason it doesn't work is you missed a / before etc. It should be sudo mcedit /etc/wpa_supplicant/wpa_supplicant.conf

Try running the command route -n It should give you something like this:

Code: Select all

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.1.1     0.0.0.0         UG    202    0        0 eth0
192.168.1.0     0.0.0.0         255.255.255.0   U     202    0        0 eth0
If you have a line with UG under flags, the Pi is connected, the Gateway on that line should be your router's IP (192.168.1.1 on my example)

Now run the following commands:
To confirm that you can communicate with the router
ping -c 2 (the gateway IP from above)

To confirm that you have internet connection
ping -c 2 1.1.1.1

To confirm that you have a DNS service
ping -c 2 raspberrypi.org

foxint
Posts: 60
Joined: Wed Mar 23, 2016 3:16 am

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Sun Jun 28, 2020 3:48 am

Hi - thank you so much

Are these results good??

still no internet
Attachments
2020-06-28-route -n-small-small-small.jpg
2020-06-28-route -n-small-small-small.jpg (174.35 KiB) Viewed 400 times
2020-06-28-ping-small-small-small.jpg
2020-06-28-ping-small-small-small.jpg (197.18 KiB) Viewed 400 times

jbudd
Posts: 1358
Joined: Mon Dec 16, 2013 10:23 am

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Sun Jun 28, 2020 3:57 am

You are connected to the internet but you don't have a DNS service.
Did you give the Pi a static IP address? Try commenting out whatever changes you made to set the IP

foxint
Posts: 60
Joined: Wed Mar 23, 2016 3:16 am

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Sun Jun 28, 2020 4:04 am

Sir - thank you again.

I did notice on your example the Use Iface is 0 eth0 while mine is totally different????

You are connected to the internet but you don't have a DNS service. – I do not know. The pi is connected to the same switch as my PC and the PC can get internet (it has a static IP address)

Did you give the Pi a static IP address? – no this was the IP Address it automatically got. I checked on my router and it is present.

Sorry, I have no idea.

jbudd
Posts: 1358
Joined: Mon Dec 16, 2013 10:23 am

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Sun Jun 28, 2020 4:11 am

what does systemctl status dhcpcd show?

Edit - Sorry that's irrelevant - too late at night for me!
Last edited by jbudd on Sun Jun 28, 2020 4:19 am, edited 2 times in total.

foxint
Posts: 60
Joined: Wed Mar 23, 2016 3:16 am

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Sun Jun 28, 2020 4:17 am

Nothing - it is not work
Attachments
2020-06-28-system-small-small-small.jpg
2020-06-28-system-small-small-small.jpg (198.98 KiB) Viewed 376 times

foxint
Posts: 60
Joined: Wed Mar 23, 2016 3:16 am

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Sun Jun 28, 2020 4:21 am

sorry
Attachments
2020-06-28-System-small-small-small.jpg
2020-06-28-System-small-small-small.jpg (198.11 KiB) Viewed 369 times

foxint
Posts: 60
Joined: Wed Mar 23, 2016 3:16 am

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Sun Jun 28, 2020 4:24 am

Sorry....
Attachments
2020-06-28-Systemctl-small-small-small.jpg
2020-06-28-Systemctl-small-small-small.jpg (202.74 KiB) Viewed 359 times

jbudd
Posts: 1358
Joined: Mon Dec 16, 2013 10:23 am

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Sun Jun 28, 2020 5:43 pm

OK can you post the output from
cat /etc/os-release | grep PRETTY
cat /etc/resolv.conf
cat /etc/resolvconf.conf
resolvconf -v

Have you made any changes affecting networking on the Pi, edited /etc/network/interfaces, installed an ad blocker such as PiHole, a VPN such as PiVPN?

foxint
Posts: 60
Joined: Wed Mar 23, 2016 3:16 am

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Sun Jun 28, 2020 8:58 pm

Sir - thank you

No changes

I copied the OS to the SD card and trying to get it working.

I was planning to put Pi Hole on, but as part of the inital instructions, was to update the software via sudo....(whatever) (Lost my piece of paper), it did not connect to the internet

Why is the pi so frustrating....

7am in the morning 3 degrees
Attachments
2020-06-29-Various-small-small-small.jpg
2020-06-29-Various-small-small-small.jpg (177.67 KiB) Viewed 210 times

jbudd
Posts: 1358
Joined: Mon Dec 16, 2013 10:23 am

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Sun Jun 28, 2020 9:23 pm

I can't see any problem with those results, assuming your router is 192.168.1.1.

You can try editing /etc/resolvconf.conf (use sudo and whatever editor you prefer)
Below the line #name_servers=127.0.0.1 insert another line
name_servers=1.1.1.1

Save it and reboot the pi.

If that doesn't work probably it's time to burn a new raspian image to the card and start from scratch.

foxint
Posts: 60
Joined: Wed Mar 23, 2016 3:16 am

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Sun Jun 28, 2020 9:35 pm

Sir - thank you.

It did not work.

This is the 3rd time I have burnt the image onto an SD card
Attachments
2020-06-29-editnogood-small-small-small.jpg
2020-06-29-editnogood-small-small-small.jpg (186.09 KiB) Viewed 194 times

jbudd
Posts: 1358
Joined: Mon Dec 16, 2013 10:23 am

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Sun Jun 28, 2020 9:40 pm

sudo nano /etc/resolvconf.conf

foxint
Posts: 60
Joined: Wed Mar 23, 2016 3:16 am

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Sun Jun 28, 2020 9:43 pm

Sir

Thank you

How do I save????

Yes I am not good with pi

foxint
Posts: 60
Joined: Wed Mar 23, 2016 3:16 am

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Sun Jun 28, 2020 9:55 pm

Sir

I googled the command and I think I did it

here is the screen shot of after the edit

NO internet


Thank you
Attachments
2020-06-29-AfterEdit-small-small-small.jpg
2020-06-29-AfterEdit-small-small-small.jpg (154.64 KiB) Viewed 173 times

jbudd
Posts: 1358
Joined: Mon Dec 16, 2013 10:23 am

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Sun Jun 28, 2020 10:00 pm

Sorry but you have not done exactly what I suggested.

Get rid of the # at the start of the line.

foxint
Posts: 60
Joined: Wed Mar 23, 2016 3:16 am

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Sun Jun 28, 2020 10:12 pm

Sir

I cannot get the # off

Will I have to delete the complete line?

foxint
Posts: 60
Joined: Wed Mar 23, 2016 3:16 am

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Sun Jun 28, 2020 10:21 pm

Sir

I forgot to hit enter.

I think it works - thank you.

Can I ask another question??

I believe there are 2 or so commands to update the software. Can you enlighten me??

I will be away for a short while - taking the girls to school

Thank you

jbudd
Posts: 1358
Joined: Mon Dec 16, 2013 10:23 am

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Sun Jun 28, 2020 10:24 pm

sudo apt update
sudo apt -y full-upgrade

It won't work unless you have internet access.

School? Are you in New Zealand?

foxint
Posts: 60
Joined: Wed Mar 23, 2016 3:16 am

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Sun Jun 28, 2020 11:14 pm

Sir

It seems to work....thank you.

I suppose the only problem was me...

I am in rural Australia. Where are you?

Thank you...

jbudd
Posts: 1358
Joined: Mon Dec 16, 2013 10:23 am

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Sun Jun 28, 2020 11:23 pm

Glad you got it sorted out finally!

I'm in England. No school here till September, I think.

Return to “Beginners”