ping to different network in linux

Hi all,

please help solving my small issue
below is the configuration

I have 3 systems

sytem1 -------- system 2 ----------system 3

system 1 : 10.255.1.4 & default gw 10.255.1.55
system2 : ip 1 : 10.255.1.55 , ip 2: 10.255.2.1
system 3 : ip : 10.255.2.3

on system 2 : net.ipv4.ip_forward = 1

i am able to ping 10.255.2.3 from system 2
I am able to ping 10.255.1.55 from system 1
but i am not able to ping 10.255.2.3 from system 1

please suggest what needs to be done ?

whats system 2 & 3 default gateway?

no gateway is configured for system 2 & system 3.

for ping to work i think it is enough if we configure default gateway to system 1
please confirm

You'll need a gateway defined on system 3 too, either a default or a specific one for the other net, since otherwise the IP stack doesn't know where to send packets destined for a different network.

:slight_smile: i missed out that...