Ok I have found the solution. First make sure you have iproute2 or iproute installed. (I was using Scientific Linux 6.5 and it was already there). Then I did the following
Code:
echo "1 test" >> /etc/iproute2/rt_tables
ip route add 192.168.13.0/24 dev eth1 src 192.168.13.2 table test
ip route add default via 192.168.13.1 dev eth1 table test
ip rule add from 192.168.13.0/24 table test
ip rule add to 192.168.13.0/24 table test
ip route flush cache
basically you are creating routing policies. I hope this helps someone else having this issue.