Breakdown:
When you ifconfig eth0 10.0.0.1 netmask 255.255.255.0
it adds a route for 10.0.0.0/24 to the eth0 interface...
HOWEVER if you add another route say like
route add -net 10.0.0.128 netmask 255.255.255.128 gw 10.0.0.1
the route that just added will take precedence over the first one and if someone goes to an ip over .128 it will route it to .1 .
when I run MRTD, it REMOVES all of those routes and it is not possible to add them back even if I add them in MRT it does not take precedence over the first one and therefor i have THOUSANDS AND THOUSANDS OF ARP entries in my arp table and linux is complaining miserably..
What I am doing is having a link address inside the subnet. My routing is set up like this:
ifconfig eth0:1 10.0.0.1 netmask 255.255.255.0
route add -host 10.0.0.2 dev eth0:1
route add -net 10.0.0.0 netmask 255.255.255.0 gw 10.0.0.2
that way it sends all packets to 10.0.0.2 without using arp and only 10.0.0.2 is in arp table.
PLEASE PLEASE FIX This asap so I can specify a higher preference for a static route than a connected route in mrt or at least if they have the same preference I can specify which one it reads first in the routing table.
Thank you