A separate issue of the topic
You need to configure routing between two local networks and machines:
From the first machine 192.168.0.24 - I can ping the second eth1: 192.168.0.155 . If you go through SSH to the second machine eth1: 192.168.0.155 ; kicking third machine eth0: 192.168.2.167 . Also vice versa, but from the first machine the latter is not pinged - eth0: 192.168.2.167
It looks like this on the diagram:
