Enemy
September 13, 2007, 8:58pm
1
Hi,
there is a MT box with 2 uplink interfaces to different ISPs. And subnets with users using pppoe connetctions.
2 gateways, policy routing, some traffic goes thru one gateway some thru other.
I’m trying to make one internet site (host) always go thru specified gateway (ISP) only.
Added this
add dst-address=xx.xx.xx.xx/32 prefsrc=0.0.0.0 gateway=yy.yy.yy.yy scope=255 target-scope=10 comment="Special route for site xx.xx.xx.xx" disabled=no
to ip > route
But tracert show that traffic to xx.xx.xx.xx still goes thru first gateway, not yy.yy.yy.yy
Any ideas?
do you need to add this route rule on any alternate routing tables ? Is it using the right table basically…
Enemy
September 14, 2007, 5:47am
3
Thanks for the answer,
but what tables do you mean? just don’t get it…
janisk
September 14, 2007, 9:24am
4
if you have 2 isps you can be contacted by either of them, and if you have set up default route most problaby your packets will go out default route and initiator of connection will get confused.
i would use connection marking depending on though witch connection the connection came in and add routing marks. so packets do leave through correct connection
you said you were using policy routing, so I assume you have more than 1 routing table…
janisk
September 17, 2007, 7:08am
6
about routing, policy routing etc. topics in RouterOS read here:
http://www.mikrotik.com/testdocs/ros/2.9/ip/route.php