Velvet Star Monitor

Standout celebrity highlights with iconic style.

updates

"no route to host": Peer to Peer Network between laptop and Raspberry Pi not working

Writer Sophia Terry

I've been attempting to establish a peer-to-peer network between my laptop (Ubuntu 16.04.2, Codename: Xenial) and my Raspberry Pi 3 (Raspbian, Codename: Stretch, 9.1). After attempting to connect with ssh, I always get back a no route to host. I've run out of ideas on how to figure out why this does not work, and I would be ecstatic if someone found a solution. Here is what I've tried to see what the problem is.

The /etc/network/interfaces file in my laptop is:

auto enp3s0f1
iface enp3s0f1 inet static
address 192.168.10.2
netmask 255.255.255.0

For the Raspberry Pi, it's:

auto eth0
iface eth0 inet static
address 192.168.10.3
netmask 255.255.255.0

The reason the network name for the laptop is enp3s0f1 is because the name eth0 does not work for Ubuntu 16.04. I have tried to change the name to eth0 with:

sudo ip link set enp3s0f1 name eth0

But what I get back is:

RTNETLINK answers: Device or resource busy

I ran:

sudo /etc/init.d/networking restart.

For both the Pi and the laptop, and they were both successful. I was able to establish a connection to each network respectively. When I ran:

ssh pi@192.168.10.3

On the laptop, it shows:

ssh: connect to host 192.168.10.3 port 22: No route to host

I ran:

sudo service ssh status

For both devices, and they were both active.

I've inserted a raspberry pi wifi dongle in both the pi and the laptop, and that does not help.

I've tried:

ping 192.168.10.3

And it always shows:

From 192.168.10.3 icmp_seq=1 Destination Host Unreachable

I've tried:

arp -a

And I get:

? (192.168.10.3) at <incomplete> on enp3s0f1

I've also gone into the Ubuntu connection settings.enter image description here

As you can see in the image, I selected the connection, went to IPv4 settings, clicked "Routes", and added the Pi's IP address. That did not help either.

Here is some more information that might be helpful to you all:

Laptop ifconfig:

ifconfig output of Ubuntu 16.04

Pi ifconfig:

ifconfig output of Rasbperry Pi

Thanks in advance!

5 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy