Answer the question
In order to leave comments, you need to log in
How does routing work with dual wan on Mikrotik?
Hello, dear habr experts, there was such a question, there is a Mikrotik that is connected to two providers and two providers are added to the routing, that is, default gateway (next hops), A question such as Mikrotik will determine which gateway next hops belongs to which provider and send packets through it ?? For routing, we only specified gateway, but we didn’t specify an interface or something, how does Mikrotik understand it ??
Answer the question
In order to leave comments, you need to log in
In the case of Mikrotik, the default gateway becomes the route whose distance is less. This route has a Gateway whose ip belongs to the network where the IP address of your external interface is located.
dst-addr pref-src gateway dist
0.0.0.0/0 5.20.22.7 1
5.20.16.0/20 5.20.30.22 ether1 0 Roughly speaking
, the router looks into the table and sees:
By default, it runs along the route, which has a shorter distance, if two Links work at the same time, then take a look at the manga, there are labeling of packages and connections
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question