I'm trying to emulate multiple routers for testing purposes without using 7 different physical routers. I've written static routes so the traffic should hop from one interface to another before arriving at the final interface. The problem is since all of the networks are directly connected to my router, it allways takes the direct route. I realize this is counter-routing philosophy. But for my testbed purposes, we need to be able to run a traceroute and see all of the hops a packet would take.
Is Policy Based Routing capable of defining routing rules on a per interface basis? I'd like a rule to effect of:
if packet received on interface X and destined for network A, go to interface Y, not directly to the interface on network A.