2x tomato in the same LAN (double default gateway)

Discussion in 'Tomato Firmware' started by rs232, Feb 23, 2011.

  1. rs232

    rs232 Network Guru Member

    Hi all

    I was thinking... what`s the best way to provide clients with a redundant default gateway?

    My idea is to have two tomato on the same LAN to get a sort of failover in case of WAN problems, however even tweaking the dnmasq config I don`t see a way to provide the clients with a double "option 3". e.g.

    I also thought about passing the second default gateway using static routes to the clients e.g.

    but using this second way I don`t get any control on the metric a therefore gateway preference top be used on the client.

    Is there perhaps something thing that simple I`m missing here?
  2. rs232

    rs232 Network Guru Member

    Sorry I think I`ve asked a stupid question this time :)
    Even if AP1 had WAN down all the clients with a "secondary" default gateway will still try to communicate to AP1, so I think the piece of config I`m after has to be put on AP1 saying use WAN when available or AP2 Ip address when not avaialble. So my question now changes into: How would you go testing the WAN on AP1 and removing it from the routing table in case of problems? A ping with -i would do to test but not sure what would it be best to re-test re-enable when WAN eventually is back online.
  3. mikester

    mikester Network Guru Member

    Do a google search for dual wan load balancing and failover
  4. TT76

    TT76 Networkin' Nut Member

    DNSMASQ can not get it. The command ip is a right way.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice