I just got my new Raspberry Pi3 (model B). I have installed it and now I don't want to use all the cables for mouse, keyboard, HDMI and so on, which is why I have decided to use Ethernet Cable and using Putty to communicate with it. But when I try to call it with Putty it says "No route to host".
- I use Linux on my laptop as well. When I plug in the cable it gives me a notification that I have established an ethernet connection.
I have tried to set up a static IP address for the raspberry pi by changing the
/etc/dhcpcd.conffile. I have added the following lines of code at the end:
interface eth0 static ip_address=192.168.0.2 static domain_name_servers=192.168.0.1
my ifconfig on the laptop looks like this:
$ ifconfig enp2s0 Link encap:Ethernet HWaddr 18:31:bf:1c:35:f2 inet addr:169.254.220.38 Bcast:169.254.255.255 Mask:255.255.0.0 inet6 addr: fe80::88c6:d80a:1465:65a8/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:16 errors:0 dropped:0 overruns:0 frame:0 TX packets:297 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:2128 (2.1 KB) TX bytes:54278 (54.2 KB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:699515 errors:0 dropped:0 overruns:0 frame:0 TX packets:699515 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:35255453 (35.2 MB) TX bytes:35255453 (35.2 MB)
the ifconfig on the Raspberry Pi:
Can someone notice what is my mistake?