TL;DR: Is there a way to have two different (unreliable) ISPs connected to a single network switch, so that when one drops out, the home network is automatically switched to the other ISP?

-–

Hi all!

I am a networking hobbyist, and I built out a home network for a family friend of mine living in Mexico. They have an ISP reliability problem I have not encountered before. Their service frequently cuts in and out, and thus they have two separate ISPs to ensure connectivity at all times.

I currently have both ISP’s gateways plugged into the same unmanaged network switch. The hope is that if one ISP goes out, the switch will be smart enough to use the other one. In practice, when both ISPs are up and running, the network switch seems to flip randomly between the two of them which causes interruptions on the home network.

I would like to have both ISPs plugged in at the same time so my customer does not have to walk down to the switch swap inputs. Is this functionality I would need a mananaged switch to accomplish?

Let me know what you think, and thanks for your help!

AF

  • BlowItOutYerArse@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Go check out the Firewalla line. Supports WAN failover and their UI makes it so a complete moron can set this up.

  • Supergrunged@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Look for a router with multiple wan ports. I used a Luxul XBR-2300 for this style setup for years. My current Araknis AN-310 will do up to 3 Wan ports for fail over. It really depends on how much you’re willing to spend.

  • government--agent@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    This is called WAN failover (or policy based routing depending on your needs) and that’s of course the job of a router.

    ISP’s gateways plugged into the same unmanaged network switch.

    This will not work and will cause issues with your networks performance

  • sniff122@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    This is something a router would do, not a switch. You would need to have a router with multiple WAN ports so not most consumer routers

  • Oolon42@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Switch, no, router, yes. I used to run an old Linksys wifi router with DD-WRT firmware on it that had two WAN ports, one wired and one wireless. The wired was to my ISP, and the wireless was to my neighbor’s, with his consent, of course. If mine went down, I could easily switch to his.

  • sadatquoraishi@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Sounds like you need a dual WAN router, and you’ll need to set your current two ISP modems so they are not assigning IP addresses. There are some consumer dual WAN routers you can get, I think Asus has some models. You can set them to use one ISP as the primary, and when that drops out, the router automatically uses the secondary. When the primary is back online, the router automatically changes back. You’ll get perhaps a few seconds of dropout but it shouldn’t need any user intervention.

  • rubixd@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    I can’t think of a way to do it with an unmanaged switch because, if I’m understanding correctly, it’s going to be a routing issue.

    I think you need a router in the middle so that your entire home subnet has the same gateway. Then, when one of the uplinks goes down you don’t have to change gateways on anything but the primary router.

  • bigchrisre@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Got an old computer sitting in a corner somewhere? Add a multi-port network card and set up Opnsence. Haven’t done it myself, but there are multiple web pages describing how to do just this.