I have two hosts with different subnet

Host1(Linux) has Ip Address of 172.29.1.xxx Host2 has IP Address of 192.168.1.xxx

Host2 with 192 address can ping the host1 and all the servers with 172 address Host1 with 172 address can only ping the gateway of 192 i.e but cannot ping any other servers with 192 address including host2.

I tried adding static route on host1 with these but it doesn't change anything

ip route add dev eth0

ip route add via dev eth0

Can you please help me out with this.



This sounds like an issue on the gateways. Since 172.x.x.x servers can respond to 192.x.x.x, routes are correct. Check firewall/gateway rules.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.