I want to hook up two Raspberry Pis via a network cable in order to send commands from one Pi to the other.
To do so, I want to set a static IP address on both Pis. I know I will have to edit the dhcpcd.conf
-file.
My first approch was:
`interface eth0
static ip_address=169.254.250.193/24
static routers=169.254.255.255
static domain_name_servers=169.254.255.255`
with the ip address and router given from my ifconfig after I hook up both Pis.
However, the ifconfig does show me the interface eth0, but does not include any ip address or broadcast address.
I also went for sudo service dhcpcd status
and it says:
...
Jan 22 15:00:23 raspberrypi dhcpcd[376]: eth0: no IPv6 Routers available
...
I have got 2 questions:
Do you think it is even neccessary to give both pis a static address if I'm only working on a direct ethernet network cable connection? The Pis will both boot up and should start communicate on their own in the future application.
If yes, how can I change the Ip address to a static one, since I'm not passing any router?
Thank you so much!
Best regards, Tobi