I am not a network expert but not a newbie either, I am having an interesting issue.
I have just setup a machine which got two NICs, one for private network and the other one for public network which has a real IP assigned to it.
Configuration of eth0 for private network as follows;
Configuration of eth1 for public network as follows;
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default PUBLIC_GATEWAY 0.0.0.0 UG 0 0 0 eth1
PUBLIC_NETWORK_ID * 255.255.255.248 U 0 0 0 eth1
link-local * 255.255.0.0 U 1002 0 0 eth0
link-local * 255.255.0.0 U 1004 0 0 eth1
172.26.111.128 * 255.255.255.128 U 0 0 0 eth0
I am sure this is quite easy to achieve. I have searched about this, tried lots of ways(tried using route file, command) but somehow could not get this working. The machine still tries to route private IPs via public gateway.
I would appreaciate any ideas on this. Where I am wrong at?