Hello everybody.
I am new user from the forums, I'm from peru.
I have a problem I hope you may help me.
I don't understand very well how the route tables (route command add, del etc) works.
This is the scenario:
eth0: ip 10.200.0.x / subnet 255.255.255.0 / gateway 10.200.0.2
eth1: ip 192.168.0.x / subnet 255.255.255.0 / gateway 192.168.0.2
What I want is that when I make a
ping 10.200.0.16 for example, it returns an answers of connection.
and the same with 192.168.0.50 for example
but now, I do the 2 commands above, and only returns answers on the net 192. The ping to 10.xxxx. returns bad.
The route table is the original, i didn't modify any because i didn't know how it works.
But i tried a little things i found on the web.
I tried route add -net 10.200.0.0 -subnet 255.255.255.0 -gw 10.200.0.2 dev eth0
I assummed that: all the requests from net 10.200.xxx and "ping" to 10.200.xxx will go though the gw 10.200.0.2
But, I assumed bad, because it didn't work.
So what am i missing ??
Thanks for your time and help.
sergiomc
PS: Sorry for my poor english, i speak spanish.