routing packets.. / disabling loopback
I have two NIC's interfaces on my linux machine(eth1 and eth2).
Each have different IP addresses(10.0.0.1, 10.67.7.1).
These two interfaces are connected together through hub.
Here is the my question?
1) If I 'ping 10.0.0.1', it should go out through network interface eth2 and through hub and enter on eth1 and response also travel through similar direction.
2) If I 'ping 10.67.7.1', it should go out through network interface eth1 and through hub and enter on eth2.
How can setup routing table for this,
I have tried setting up routing and iptables, etc.. nothing helped.
If any one good router/networking guy, you should know this one.
I am doing a project, I want this way to handle this.