M
M
Mikname2019-05-16 18:56:51
network hardware
Mikname, 2019-05-16 18:56:51

Is it possible to distribute the Internet to 2 routers through a managed switch?

Hello
Introductory
2 providers;
1 managed switch;
2 routers.
Is it possible to connect 2 providers to each router? Only 1 router will work at a time.
And in what way can this be done?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
R
rionnagel, 2019-05-16
@Mikname

And what is the purpose? And how do you want to use the switch? Before routers or after? It is possible either way.
In general, there are a lot of options for how to play with this. Here's a couple.
You can configure vrrp on routers, ask providers for 2 cords with lacp, 4 in total, configure lacp on routers. And configure lacp on 2 switch ports.
You can vice versa)
Insert 2 provider ports and 4 ports from 2 routers into the switch. Set up lacp groups of 2 pcs, each with 1 port of each router, on routers you also set up aggregation. It is necessary to resolve it on the switch so that each lag group has access to both providers, and the providers do not have access to each other, as well as to the rest of the switch ... I won’t tell you how to do it right off the bat, but if not, just plug it into one vlan, hoping that everything will be ok. If providers, for their part, do aggregation and give 2 more cables, it will be easier.
Further on the situation)
In general, if you want to use only 1 router at the same time, you don’t need all this crap. You set up one - pour a backup on the second, if the wire breaks, you poke one into one, that's it.
Don't pee on the toaster while drunk! X10

W
Wexter, 2019-05-16
@Wexter

You can google://vrrp

V
Vladimir Zhurkin, 2019-05-18
@icCE

Mikname If I understood correctly.
You divide your switch into two VLANs, so that each one has its own provider.
Further from each VLAN, you can use any number of wires that you need. Let's still say 2 wires from each provider. Total 4.
You connect each wire to the router and the stp protocol (RSTP) must be raised on them, and on the switch from which the wires come.
As a result, you will have one spare wire from each provider.
You can also use LAG / LACP (link aggregation) - but it is also desirable that the upstream router should be able to do this, although the tick can be configured, for example, in failover mode. (sometimes it works so-so)
You can increase the degree of madness and put 4 wires on two switches.
For each router, we provide a provider for vlan and we only have one router with stp and lag working at a time. If the router falls, then scripts or, as already noted by vrrp, everything rises on the second one.

A
Alexander, 2019-05-16
@NeiroNx

depends on the type of providers, PPPoE definitely not - hubs cannot work together.
if the direct address - just prescribe both addresses in both routers and change the default route when necessary - both providers can be plugged into an unmanaged switch. If VPN - then similar to direct addresses, just raise the desired channel - routing will automatically register on the active vpn.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question