M
M
MaxxDamage2019-09-27 11:45:23
Debian
MaxxDamage, 2019-09-27 11:45:23

How to set the route correctly?

Good day.
I have to ask a completely stupid question, because I shamefully cannot understand how to correctly set the routes.
In general, the situation is as follows - there was a server with two Internet channels, from different providers. The IP addresses were different accordingly, as were the gateways. Routing was as simple as three pennies:

spoiler

default 94.xxx.xxx.xxx. 0.0.0.0 UG 0 0 0 eth2
10.8.0.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun0
10.8.0.2 * 255.255.255.255 UH 0 0 0 tun0
37.0.0.0 37.zz.zzz.zz.sa 255.0.0.0 UG 0 0 0 eth0
37.0.0.0 * 255.0.0.0 U 0 0 0 eth0
94.0.0.0 94.xxx.xxx.xxx. 255.0.0.0 UG 0 0 0 eth2

That is, everything from 37 goes to one gateway, everything from 94 goes to another.
But the office moved, and in the new location it was decided to connect two channels from the same provider, with different gateways.
And now the addresses, let's say, are less different, something like this - 94.180.ххх.хх and 94.180.zzz.zz. As I understand it, you need to somehow indicate with a mask where which addresses are, but I don’t understand how. Maybe I'm dumb, yes. Help me please )

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
iddqda, 2019-09-27
@iddqda

And you only go to the provider's network?
How did you get on the toaster?
answer yourself a simple question: what does the very first line in your routing table mean?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question