Rob-Cur
Posts: 6
Joined: Sat Jan 14, 2017 10:18 am

Problems Connecting to Internet

Sat Jan 14, 2017 10:40 am

I'm completely new to Raspberry Pi. I have a Raspberry Pi3 Model B, which I bought with the starter kit, so NOOBS was already loaded onto the flash card. The Pi boots up and gets me to the main home screen. I have tried connecting via WiFi first and also via an ethernet cable directly into my BT Home Hub 4, neither seem to get me an internet connection. I keep getting message "Oops! It was not possible to show this website.....Error resolving 'www.raspberrypi.org'...

I've tried pinging my router by typing: ping 264.168.1.254 (which is the IP address of the BT Home Hub) and I get the response ping: unknown host 264.168.1.254

I would really appreciate someone who explain in baby steps what I need to do to fix the problem.

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

Re: Problems Connecting to Internet

Sat Jan 14, 2017 11:41 am

Your router sets up a local network using a range of IP addresses. When I had a BT Home Hub it's address was 192.168.1.254 and devices connected to it had addresses like 192.168.1.21

I suggest that you connect your Pi to the router with an ethernet cable.
Now in a terminal on the Pi type ifconfig eth0. Look for a line like this

Code: Select all

inet addr:192.168.1.221  Bcast:192.168.1.255  Mask:255.255.255.0
. That shows that my Pi's address on the local network is 192.168.1.221

The "ip route" command should show you the router's IP, I think 192.168.1.254 is more likely than 264.168.1.254

Code: Select all

default via 192.168.1.254 dev eth0  metric 202
Can you ping the router? ping -c 3 192.168.1.254 (or whatever you have)
Can you ping an IP address on the internet? ping -c 3 8.8.8.8 (8.8.8.8 is a server belonging to Google. It can be relied on to be online)
Do you have DNS to translate URLs to IP addresses? ping -c 3 www.bbc.co.uk

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: Problems Connecting to Internet

Sat Jan 14, 2017 11:50 am

Rob-Cur wrote: I've tried pinging my router by typing: ping 264.168.1.254 (which is the IP address of the BT Home Hub) and I get the response ping: unknown host 264.168.1.254
That's a completely wrong IP address. Any part of a dotted decimal number can never go higher than .255. 264 is higher than 255.

Take a look at http://ip4.me to discover your public IP address.
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.

Rob-Cur
Posts: 6
Joined: Sat Jan 14, 2017 10:18 am

Re: Problems Connecting to Internet

Sat Jan 14, 2017 12:23 pm

Thanks for your help so far and sorry I meant to type 192.168.1.254 which is my Home Hub router IP, don't know how I managed to type this wrong before.

I have now typed in the command ifconfig eth0 and it comes up with
inet addr: 83.136.247.187 Bcast: 83.255.255.255 Mask: 255.0.0.0.....

If I type; ping 192.168.1.254, it says Network is unreachable
If I type: ping -c3 192.168.1.254, it says Network is unreachable
If I type: ping -c3 8.8.8.8, it says Network is unreachable
If I type ip route it says: inet6 addr:fe80: :a354:c9bd:6e1b:350e/64 Scope:Link.....

What should I try next?

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: Problems Connecting to Internet

Sat Jan 14, 2017 12:30 pm

Have you put your Raspberry in the router's demilitarised zone (DMZ)? You really don't want to do that as it opens every single port to the public internet (and that's a hackers/scammers paradise).
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.

Rob-Cur
Posts: 6
Joined: Sat Jan 14, 2017 10:18 am

Re: Problems Connecting to Internet

Sat Jan 14, 2017 12:45 pm

I'm not sure what you mean about the router's DMZ zone. I've connected via WiFi using the normal password and I've also plugged it in directly with an ethernet cable. I haven't changed any settings on the router for the Pi.

When I look at on the network devices page on the router, it can see a device in Lan 4, which is the port connected to the Pi and it has assigned an IP address, but it says "Not connected".

What next?

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: Problems Connecting to Internet

Sat Jan 14, 2017 12:47 pm

Connect a screen, keyboard and mouse. Open up an LXterminal and run

Code: Select all

hostname -I
to find your Raspberry's LAN IP address.
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.

Rob-Cur
Posts: 6
Joined: Sat Jan 14, 2017 10:18 am

Re: Problems Connecting to Internet

Sat Jan 14, 2017 12:52 pm

OK, hostname -I came back with 83.136.247.187

Rob-Cur
Posts: 6
Joined: Sat Jan 14, 2017 10:18 am

Re: Problems Connecting to Internet

Sat Jan 14, 2017 1:44 pm

Can anyone help me now. I'm still lost as to what I need to do to get my Pi connected to the internet via my BT Home Hub?

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: Problems Connecting to Internet

Sat Jan 14, 2017 2:11 pm

Rob-Cur wrote:OK, hostname -I came back with 83.136.247.187
Then there is something exceedingly strange going on with the way your Raspberry is connected to your BT home hub. Are you connecting to the right WiFi SSID? Or are you connecting with a cable?
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.

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

Re: Problems Connecting to Internet

Sat Jan 14, 2017 2:12 pm

83.136.247.187 is a public IP address which your Pi really shouldn't have unless you want to use it as a web server.
Furthermore it's a Russian IP. and since you have a BT Home Hub, I don't think you can be in St Petersburg.

Maybe it's all perfectly OK but if my Pi acquired a strange IP address like that, I'd reformat the SD card and install Raspbian again. I'd be worried about the other devices on my network too.

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: Problems Connecting to Internet

Sat Jan 14, 2017 2:47 pm

jbudd wrote:83.136.247.187 is a public IP address which your Pi really shouldn't have unless you want to use it as a web server.
Furthermore it's a Russian IP. and since you have a BT Home Hub, I don't think you can be in St Petersburg.

Maybe it's all perfectly OK but if my Pi acquired a strange IP address like that, I'd reformat the SD card and install Raspbian again. I'd be worried about the other devices on my network too.
83.136.247.187 is a Russian IP address. Get that machine off the internet NOW!
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.

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

Re: Problems Connecting to Internet

Sat Jan 14, 2017 3:03 pm

I don't know if you are advising the original poster or mocking me Dougie.

There are lots of valid reasons to have a Russian IP address. The most obvious one is that they have a Russian ISP.

If my PI had any public IP address, Russian or not, and I couldn't explain it, I would rebuild it.

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: Problems Connecting to Internet

Sat Jan 14, 2017 3:14 pm

jbudd wrote: There are lots of valid reasons to have a Russian IP address. The most obvious one is that they have a Russian ISP.
The OP stated they are using BT (British Telecom) as their ISP, so the natural assumption is that their machine has been radically compromised by being an insecure system on the public internet. That means, potentially, every machine on the OP's network has also been compromised (because the pi userid is functionally equivalent to root).

Get that new route for the hackers off the internet and then see what's been done to compromise it and how wide spread the attack has been.
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.

Rob-Cur
Posts: 6
Joined: Sat Jan 14, 2017 10:18 am

Re: Problems Connecting to Internet

Sun Jan 15, 2017 4:12 pm

This is very worrying, I've double checked the address that the Pi was coming up with and it is a Russion ip addrees. I've taken the Pi off my network, but what should I do to check if anything else has been compromised?

When I type in Whats My IP in google on my laptop it comes up with 86.167.126.xx, which is a BT address so that seems normal at least, but can you tell what I should do about the other equipment in my home? Thanks

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

Re: Problems Connecting to Internet

Sun Jan 15, 2017 4:19 pm

can you tell what I should do about the other equipment in my home?
I am no expert...

I would change my router login password.
Scan PCs with MalwareBytes (part of good regular housekeeping anyway)
When rebuilding your Pi install Fail2Ban

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

Re: Problems Connecting to Internet

Sun Jan 15, 2017 7:15 pm

Rob-Cur wrote:When I type in Whats My IP in google on my laptop it comes up with 86.167.126.xx, which is a BT address so that seems normal at least, but can you tell what I should do about the other equipment in my home? Thanks
That is the WAN address of your router and perfectly OK.

The default DHCP address pool used for devices (Ethernet or WiFi) on a BTHomeHub4 is 192.168.1.64 to 192.168.1.253
Quis custodiet ipsos custodes?

Return to “Troubleshooting”