- "eth0: adding IP address 10.1.4.2/16" is good - you have your IP address
- "eth0: adding route to 0.255.255.0/32 metric 0" Why would you have an IP address of "0.255.255.0" on some router?
- "eth0: adding route to 18.104.22.168/10 via 0.255.255.0 metric 0" ... and why/how could you route packets to it?
- "eth0: adding default route via 10.1.255.1 metric 0" would be expected and fits the interface configuration
If that "0.255.255.0" business is really intended, I'd like to learn what it's about But most probably this is the part where things fail and the adater is taken down again. As I read RFC 1122, section 22.214.171.124, list item (b), sending a packet to that address is in violation of the RFC, so using this address as the target address is invalid.
Could you please run "dhcpcd-test eth0" on that machine and report back the results?