0
src-address=192.168.0.144/32 action=lookup table=mt
[admin@MikroTik] ip route rule>
General Information
Static Equal Cost Multi-Path routing
Consider the following situation where we have to route packets from the network 192.168.0.0/24
to 2 gateways - 10.1.0.1 and 10.1.1.1:
Note that the ISP1 gives us 2Mbps and ISP2 - 4Mbps so we want a traffic ratio 1:2 (1/3 of the
source/destination IP pairs from 192.168.0.0/24 goes through ISP1, and 2/3 through ISP2).
IP addresses of the router:
[admin@ECMP-Router] ip address> print
Flags: X - disabled, I - invalid, D - dynamic
#
ADDRESS
0
192.168.0.254/24
1
10.1.0.2/28
2
10.1.1.2/28
[admin@ECMP-Router] ip address>
Add the default routes - one for ISP1 and 2 for ISP2 so we can get the ratio 1:3:
[admin@ECMP-Router] ip route> add gateway=10.1.0.1,10.1.1.1,10.1.1.1
[admin@ECMP-Router] ip route> print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf
Page 134 of 695
Copyright 1999-2007, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA.
Other trademarks and registred trademarks mentioned herein are properties of their respective owners.
NETWORK
BROADCAST
192.168.0.0
192.168.0.255
10.1.0.0
10.1.0.15
10.1.1.0
10.1.1.15
INTERFACE
Local
Public1
Public2
Need help?
Do you have a question about the RouterOS v2.9 and is the answer not in the manual?