I wanna connect two RPis together with an ethernet cable. I did it and test with ping function and it works, I can communicate.
But for my task I have to be sure that the IP addresses are static on eth0, I don't know if it's the case. Moreover I would like to chose them myself because they don't follow the same pattern (one is 169.254.62.28 and the other 169.254.226.136).
I checked on Google and it seems I have to modify the file /etc/dhcpcp.conf
, but all the information I found is when the Pi is connected to a switch/router. So, I don't know what I have to put for this 2 data:
#static routers=?
#static domain_name_servers=?
Can I just modify static ip_address
ignoring the previous ones?
Thanks in advance for your help.