Skip to content

MicroTik: Two gateways failover

cpx October 30, 2008 1 min read MicroTik

This example explains how to use multiple gateways with one taking
over when first fails. It begins with adding the gateways. Set bigger
distance value for the secondary one, and check-gateway for the
first one:


/ip route add gateway=192.168.1.1 check-gateway=ping
/ip route add gateway=192.168.2.1 distance=2

That’s all, there are no more steps!

The first gateway will begin as it’s distance is smaller (default 0);
the check-gateway will make sure it’s up; when the ping will fail,
it will disable the first gateway and the second will take over;
when first one comes up, it will return to it’s function.

0 0 votes
Article Rating
guest

0 Comments
Oldest
Newest Most Voted
0
Would love your thoughts, please comment.x
()
x