hello all …
i want to ask about something i can’t understand in mikrotik
what is the differance between this role :
/ip route
add dst-address=0.0.0.0/0 gateway=192.168.1.1 routing-mark=to_WAN1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.2.1 routing-mark=to_WAN2 check-gateway=ping
standard dual route. Ig gateway with distance 1 goes down. the other route get active. To check if gateway is reachable you ping it. (If it don’t reply, you can use check gateway arp)
fisrst picture:
Possible to load balance etc.
last picture:
S = static
A = active
AS = Static added and active.
S= static added, not active.
first of all thank u for replying
i know what S and AS mean i need an explanation why i get S in fourth case i this normal ?? i see to many pictures and videos my case is diffrance no one get the same blue line just me
This is couse you have just one default gateway active, eg, your traffic goes just to that specific router, not the other one. It will, if the first router goes down.
A router works as a device, getting traffic in from one interface. Then the router need to now what to do with the traffic. To figure out where to send the traffic, trough what route, it look up in the routing table, to say, ah, I have a matching dst addres, to interface xxxx. If it don’t have a specific route, a router use to have a default route. Telling “if I don’t match any route” I go default.
You don’t have one default route in the setup. You have 2. But the router cant say. Ah.. I can send to 2 interfaces. I have 2 default routes. It can only send to one. The it say. Ah. The active route, is the one to pick. I’ll send to that interface.
In your setup, the router say. Ah. I send to the active route. IF I cant ping the gateway at active route interface, I will send to the other gateway (setting this gateway as the active route". the distance number, is used to make a pri. Saying that distance1 is preferred. Distance 2, is the alternative, not 1 prio route.
The static flag, is just that the router have get the route, “hardcoded” by you. ITs not lerned from a dynamic routingprotocol as rip,bgp,ospf etc. IT aint even a route, due to a specific IP to a interface, but a route, that manually is inserted to the routing table.