Mastering Development System & Network

Configure static IP-adress to connect to device in subnet

I have a Dragino-Yun v2.4-shield, which is a device that can be connected with an Arduino to give it networking-capabilities. It has An Ethernet-Port and Wifi. I don’t have a wifi-antenna at the moment so i tried connecting to it via the Ethernet-Port.

According to the manual, the address is assigned to the Ethernet-Port in a /4 subnet (DNS-mask: I started with a blank Arch-Linux-ISO on a ThinkPad and got it so far, as to pinging the device was succesfull. According to the manual it should also be possible to connect via ssh, but that didn’t work.

I then rebooted and wanted to ran the commands cleanly, but didn’t have any success on the second try. Here are the commands i ran (enp0s25 is the ethernet-link of my ThinkPad):

$ systemctl stop dhcpcd
$ ip link set enp0s25 up  # It is up by default though
$ ip addr add dev enp0s25
$ ip route add default via
$ ping -c3
PING ( 56(84) bytes of data.
FROM icmp_seq=1 Destination Host Unreachable
FROM icmp_seq=2 Destination Host Unreachable
FROM icmp_seq=3 Destination Host Unreachable
--- ping statistics ---
3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4054ms
pipe 3

I will add, that i have very little networking-experience. Where am i wrong? Is there something i’ve missed?

Leave a Reply

Your email address will not be published. Required fields are marked *