I have modified my routing table by deleting one rule, and adding two new rules for my second interface eth1:
route del -net 10.1.2.0 netmask 255.255.255.0 route add -host 10.1.2.51 eth1 route add -host 10.1.2.52 eth1
I want the rules to survive reboot. I could write a simple rc script to remove 1 rule and insert 2 new, but I was wondering whether there is a way to configure ifconfig, not to add a route rule for the interface (eth1) when it is started, or even better, to specify which rules should be added.
What would be a clean way to do it? Does
ifconfig allow me to specify custom rules for routing?