rjhav1025
Posts: 4
Joined: Thu Sep 22, 2022 1:16 am

Unable to connect to internet

Thu Sep 22, 2022 1:50 am

Hi everyone,

I'm a beginner here but I've been trying everything to get my raspberry pi 3 to work. I'm connected, but I can't use the internet or SSH into my Pi.

- I'm on bullseye

When I try to use ping google.com, I get the following: Temporary Failure in Name Resolution
When I try to use ping 8.8.8.8, I get the following:

Code: Select all

PING 8.8.8.8 (8.8.8.8) 56(84 bytes of data.
From 192.168.0.117 icmp_seq=1 Destination Host Unreachable
Here is my dhcpcd.conf:

Code: Select all

interface wlan0
static ip_address=192.168.0.117/24
static routers=192.168.0.1
interface eth0
static ip_address=192.168.0.109/24
static routers=192.168.0.1
static domain_name_servers=

rooppoorali
Posts: 100
Joined: Sat Jul 16, 2022 3:45 pm

Re: Unable to connect to internet

Thu Sep 22, 2022 4:44 am

Here is a similar thread. Couldn't find anything else unfortunately: viewtopic.php?t=310984

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

Re: Unable to connect to internet

Thu Sep 22, 2022 6:52 am

rjhav1025 wrote:
Thu Sep 22, 2022 1:50 am
Hi everyone,

I'm a beginner here but I've been trying everything to get my raspberry pi 3 to work. I'm connected, but I can't use the internet or SSH into my Pi.

- I'm on bullseye

When I try to use ping google.com, I get the following: Temporary Failure in Name Resolution
When I try to use ping 8.8.8.8, I get the following:

Code: Select all

PING 8.8.8.8 (8.8.8.8) 56(84 bytes of data.
From 192.168.0.117 icmp_seq=1 Destination Host Unreachable
Here is my dhcpcd.conf:

Code: Select all

interface wlan0
static ip_address=192.168.0.117/24
static routers=192.168.0.1
interface eth0
static ip_address=192.168.0.109/24
static routers=192.168.0.1
static domain_name_servers=


Try removing your changes to dhcpcd.conf and use the version installed with RasPiOS Bullseye. What results does that give?

User avatar
rpdom
Posts: 20560
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Unable to connect to internet

Thu Sep 22, 2022 6:56 am

I can see two problems here.

1) You haven't got any DNS servers assigned, so no name lookups will work. Hence the "Temporary Failure in Name Resolution". Sometimes your router will provide DNS, othetwise you could use google's server at 8.8.8.8

2) More important: Your Pi isn't able to get to the internet at all.

Is 192.168.0.1 the correct IP address for your router?

What do you get if you ping 192.168.0.1?

Is your Ethernet interface connected, up and working? Try ip addr
Unreadable squiggle

rjhav1025
Posts: 4
Joined: Thu Sep 22, 2022 1:16 am

Re: Unable to connect to internet

Thu Sep 22, 2022 8:44 pm

rpdom wrote:
Thu Sep 22, 2022 6:56 am
I can see two problems here.

1) You haven't got any DNS servers assigned, so no name lookups will work. Hence the "Temporary Failure in Name Resolution". Sometimes your router will provide DNS, othetwise you could use google's server at 8.8.8.8

2) More important: Your Pi isn't able to get to the internet at all.

Is 192.168.0.1 the correct IP address for your router?

What do you get if you ping 192.168.0.1?

Is your Ethernet interface connected, up and working? Try ip addr
My pi is connecting to WiFi. And when I use ping 8.8.8.8 or ping 192.168.0.1 I get the following error:

Code: Select all

from 192.168.0.117 icmp_seq=Destination Host Unreachable

rjhav1025
Posts: 4
Joined: Thu Sep 22, 2022 1:16 am

Re: Unable to connect to internet

Thu Sep 22, 2022 11:35 pm

Also, my raspberry pi works on my phones hotspot.

Return to “Troubleshooting”