setting up two ISPs with routing policy

Dear all,
I have acquired a routerboard 750 ; it has 5 ports.
i have Two ISPs with different bandwidth, my goal is the following;

    • Traffic that goes to a list of IPs (our data center) to go through ISP#1


    • Everything else to go to ISP#2


    • If one of either ISPs go down (pinging to our data center) all traffic should be routed to the second ISP and revert back once everything is okay again


    • All other ports to serve dhcp requests to the same internal subnet of 192.168.10.0/24


    • All incoming traffic to both ISPs (from the internet) to be blocked completely

appreciate any advice.

To cause the routing to use ISP1 for 4 specific IPs you can simply add routes to those 4 IPs using the ISP1 gateway. Those more specific routes will take precedence over the default route entries.

thank you for your reply.
is that doable by the webfig ?
another question, i have only one WAN interface, how can i change another “LAN” defined interface to be considered wan as well?


quote=“CelticComms”]To cause the routing to use ISP1 for 4 specific IPs you can simply add routes to those 4 IPs using the ISP1 gateway. Those more specific routes will take precedence over the default route entries.[/quote]

Thanks for the heads up.
i’m wondering if there’s a tutorial to do that ?
i’m still failing to find out how to add a second ISP.
by default the first interface is said as WAN and the others are set as a slave for the second LAN interface


Please disregard my last post, i read relevant parts of the wiki and i’m half way through my configuration, here’s what i’ve done so far:

  • reset configuration without default config
  • set eth1 and eth2 as ISP1,ISP2
  • Set eth7 as my LAN interface
  • Set dhcp server on LAN interface
  • Set dhcp client on eth1
  • Set static ip on eth2 (unchecked default route option)
  • Set nat masquerading for 192.168.100.0/24 to 0.0.0.0/0 ( i think this should help my one dhcp assigned subnet to be masqueraded by both ISPs is that correct?)
  • Set DNS to listen for remote connections ( i’m hoping this means it only listens on LANs side, as i just want it to be a dns caching/forwarder)
  • set static routes as such:
  • 0.0.0.0/0 to go to eth1 (distance 2 )
  • IP1,2,3,4 that i want; to go to eth2 (distance 1)
  • couldn’t grasp how the firewall works, so exported default config, and copied firewall section, changed relevant interfaces, copied it into my exported config and then restored it.

Is that about right? i’m not able to test as i only have one isp here in the lab, i’ll be plugging it into a staging environment tomorrow morning but i need to check if i forgot anything.

PS: i’m hoping to add a feature that if one of them cannot ping a common destination, for example 8.8.8.8. to switch traffic to the second ISP.