Special route for specified destination

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…

Thanks for the answer,
but what tables do you mean? just don’t get it…

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…

about routing, policy routing etc. topics in RouterOS read here:
http://www.mikrotik.com/testdocs/ros/2.9/ip/route.php