In my Ubuntu server I have 5 NICs for five different subnet. There are some default kernel level routing which needs to be modified. The problem is NIC's ip and destination network is different.
For instance one NIC ip is 10.172.89.2 and this NIC is supposed to transmit traffic to 10.214.7.35. If I try adding route like:
route add -network 10.214.7.35 mask 255.255.255.255 gw 10.172.89.2 dev eth0
then kernel does not accept this route saying destination network unreachable
. Can anyone help giving idea please?