I have a computer with two network interfaces, say eth0 and eth1 with IPes 192.168.1.10 and 192.168.1.11 respectively. Both these interfaces are connected to a router directly.
When I send traffic to 192.168.1.11 from 192.168.1.10 (or let Linux 'choose' interface itself), due to default entries in linux local routing table, traffic would never leave for the network and would get routed internally. How can I delete these entries from local routing table and add in some other routing table such that traffic for 192.168.1.11 is forced out to the router.
There must be some "ip" or "iptables" way which I couldn't' figure out.