On Ubuntu 14.04.
I need to route the traffic to specific IP ranges though a specific interface.
route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth2 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2 169.254.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth3 169.254.51.0 0.0.0.0 255.255.255.0 U 0 0 0 eth4
I need the following:
169.254.1.0 - 169.254.1.254 => Route through "eth3" 169.254.51.0 - 169.254.51.254 => Route through "eth4"
Must also persist when server restarts.
Any help please?