There are two internet providers.
How can you use two providers at once when downloading, for example, torrents?

Or somehow register IP addresses. If one, then connect to one provider, and if the other - then to another. Well, either somehow differently.
Can I register in the router? Or put two network cards? (Of course, it is better in the router, so as not to bother with every computer).

Thank.

  • Do you need this for torrents only? - koks_rs
  • @koks_rs to a greater extent for torrents, but I would also like that and other programs also worked on the same system - Rakzin Roman
  • Look toward bonding: merging multiple physical adapters into one. - Alex

4 answers 4

The load distribution can be easily implemented on the basis of Mikrotik The whole essence of the process comes down to setting up 2x Internet channels, setting up NAT, removing the default gateway, and assigning these 2 channels as gateways depending on bandwidth.

192.168.1.249 - 1 Gateway 192.168.222.1 - 2 Gateway

50/50 balancing option

ip route add dst-address=0.0.0.0/0 gateway=192.168.1.249,192.168.222.1 

Suppose that the first provider has an access speed twice as high as the second, then 2/3 of the outgoing requests should be sent to the first and the remaining 1/3 to the second.

  ip route add dst-address=0.0.0.0/0 gateway=192.168.1.249,192.168.1.249,192.168.222.1 

Full description of the configuration process

More on load balancing

PS However, all sorts of Http, Https, ftp and similar traffic will need to be marked and sent with pens (or perhaps using scripts)) to a certain channel in order to exclude the option of changing IP when updating pages for example

  • @kff, why is this not the answer to the question? The author asks, in fact, about the routing of the torrent client traffic through two connections of two different providers. Yes, this answer may not be accurate, but it answers the question posed. - ߊߚߤߘ
  • @Arhad This referred to the unedited answer. Look in the story. - user194374

In order for you to work simultaneously through two providers, you need your white ip routed by both providers. This is possible only in the case of PI-addresses , but now you will not receive such IPv4 addresses. Only IPv6.

The routing options on the piece of iron are problematic in that for the server in the internet you will have either an ip from one provider, or an ip from another. And most servers will assume that they are different clients and will need to re-authorize, establish sessions, etc.

    I doubt that ordinary routers are capable of such. Connect 2 routers to one network. On the second router disable the distribution of DHCP. On client PCs, specify either 2 gateways with the same priorities, or one half of clients specify one gateway, and the second half - the other.

      In "advanced" routers, it is possible to divide traffic between two providers.

      In this case, the minimum separation quantum is a session. I do not know whether such routers can, especially in auto mode (and quite well - taking into account the load of the channel). There's a friend sure in Mikrotik.

      You can get by with small bloods if you do not specify the default gateway on one of the WAN interfaces, and prescribe the route (s) to Ineta half (address / mask, divide by eye) in the routing settings. Then everything that falls under the specified subnets will go through the second dip, and the rest through the one whose default gateway remains. It is advisable not to allow traffic to the nodes of one provider through the gateway of another.

      But the option when session traffic goes through one or another provider (or through both at the same time) is impossible - because for this you need a corresponding. agreement and setting up synchronization between them, and why does IM need this?