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 192.168.1.248.
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 192.168.1.248.
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 169.254.0.2 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?