I'm not familiar with CentOS and I need help doing the routing for this. I have a CentOS box with 3 NICs.
eth0 Link encap:Ethernet
inet addr:10.50.121.16 Bcast:10.50.121.255 Mask:255.255.255.0
eth1 Link encap:Ethernet
inet addr:10.50.128.134 Bcast:10.50.128.255 Mask:255.255.255.0
eth2 Link encap:Ethernet
inet addr:10.50.140.97 Bcast:10.50.140.255 Mask:255.255.255.0
eth0 was an existing interface and it has the default route, I've added eth1 and eth2. There are gateways on eth1 and eth2 segments (the .1 address on both). I need to have some network flows between the eth1 and eth2 NICs (through their respective gateways) to do some testing. So I guess I need to set up policy routing for this?
Edit: Sorry to be clear, I'm not saying I'm trying to route packets between the two new interfaces. I need to send some packets out from eth1's IP to eth2's IP through some infrastructure (thus simulating a conversation between vlan of eth1 and vlan of eth2). So I want to do this eth1 -> eth1-vlan-router -> ??? -> eth2-vlan-router->eth2 and then be able to reply using the reverse route. My bad for not being completely clear here.