Using PI 3:

> pi@raspberrypi:~ $ lsb_release -a
>     No LSB modules are available.
>     Distributor ID: Raspbian
>     Description:    Raspbian GNU/Linux 8.0 (jessie)
>     Release:        8.0
>     Codename:       jessie

I initially checked the pi 3 ip address by scanning via the router. The address was

I ssh'ed into the pi and installed vnc. I could now vnc into the pi which was exactly what I wanted to do via a direct connection to the ethernet cable on the laptop.

Next I altered the raspbery pi 3 ip address as follows:

sudo nano /etc/network/interfaces


iface eth0 inet static

However, on reboot, I could not ssh into the device via the ethernet cable and when I reconnected to the router it reappeared a

Other people appeared to be having the same problem. smith666 stated:

I fixed the problem just by adding the following command into /etc/dhcpcd.conf nodhcp

I added nodhcp and brilliant, the pi didn't appear on the router, (static ip). I then tried to ssh into the new ip address via the ethernet on my pc but it doesn't work.

Any ideas what I have done wrong? Do I need to change the ethernet properties on my laptop?

  • 1
    Why would you change raspberry pi IP to public IP instead of private IP? You state that your raspberry pi IP is, so I'm guessing that your router gateway is So it obvious that you can't connect to pi because your laptop/router isn't in same IP block with raspberry pi.
    – xdhe
    Jun 11, 2016 at 23:23
  • @xdhe apologies, I changed the pi address to not the laptops address. I have edited to make this clearer.
    – SeanJ
    Jun 11, 2016 at 23:25

1 Answer 1


Attempting to set a static address this way doesn't work reliably. See How do I set up networking/WiFi/Static IP is a Link-local_address and is not routable.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.