Page 1 of 1

Pi 3Cannnot connect toe intern with Ethernet cable

Posted: Sun Jun 28, 2020 1:12 am
by foxint
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??

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Posted: Sun Jun 28, 2020 2:36 am
by W. H. Heydt
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.

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Posted: Sun Jun 28, 2020 2:51 am
by foxint
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

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Posted: Sun Jun 28, 2020 3:19 am
by jbudd
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

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Posted: Sun Jun 28, 2020 3:48 am
by foxint
Hi - thank you so much

Are these results good??

still no internet

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Posted: Sun Jun 28, 2020 3:57 am
by jbudd
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

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Posted: Sun Jun 28, 2020 4:04 am
by foxint
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.

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Posted: Sun Jun 28, 2020 4:11 am
by jbudd
what does systemctl status dhcpcd show?

Edit - Sorry that's irrelevant - too late at night for me!

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Posted: Sun Jun 28, 2020 4:17 am
by foxint
Nothing - it is not work

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Posted: Sun Jun 28, 2020 4:21 am
by foxint
sorry

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Posted: Sun Jun 28, 2020 4:24 am
by foxint
Sorry....

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Posted: Sun Jun 28, 2020 5:43 pm
by jbudd
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?

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Posted: Sun Jun 28, 2020 8:58 pm
by foxint
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

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Posted: Sun Jun 28, 2020 9:23 pm
by jbudd
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.

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Posted: Sun Jun 28, 2020 9:35 pm
by foxint
Sir - thank you.

It did not work.

This is the 3rd time I have burnt the image onto an SD card

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Posted: Sun Jun 28, 2020 9:40 pm
by jbudd
sudo nano /etc/resolvconf.conf

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Posted: Sun Jun 28, 2020 9:43 pm
by foxint
Sir

Thank you

How do I save????

Yes I am not good with pi

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Posted: Sun Jun 28, 2020 9:55 pm
by foxint
Sir

I googled the command and I think I did it

here is the screen shot of after the edit

NO internet


Thank you

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Posted: Sun Jun 28, 2020 10:00 pm
by jbudd
Sorry but you have not done exactly what I suggested.

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

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Posted: Sun Jun 28, 2020 10:12 pm
by foxint
Sir

I cannot get the # off

Will I have to delete the complete line?

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Posted: Sun Jun 28, 2020 10:21 pm
by foxint
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

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Posted: Sun Jun 28, 2020 10:24 pm
by jbudd
sudo apt update
sudo apt -y full-upgrade

It won't work unless you have internet access.

School? Are you in New Zealand?

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Posted: Sun Jun 28, 2020 11:14 pm
by foxint
Sir

It seems to work....thank you.

I suppose the only problem was me...

I am in rural Australia. Where are you?

Thank you...

Re: Pi 3Cannnot connect toe intern with Ethernet cable

Posted: Sun Jun 28, 2020 11:23 pm
by jbudd
Glad you got it sorted out finally!

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