Page 1 of 1

Special route for specified destination

Posted: Thu Sep 13, 2007 11:58 pm
by Enemy
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?

Re: Special route for specified destination

Posted: Fri Sep 14, 2007 2:30 am
by changeip
do you need to add this route rule on any alternate routing tables ? Is it using the right table basically...

Re: Special route for specified destination

Posted: Fri Sep 14, 2007 8:47 am
by Enemy
Thanks for the answer,
but what tables do you mean? just don't get it...

Re: Special route for specified destination

Posted: Fri Sep 14, 2007 12:24 pm
by janisk
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

Re: Special route for specified destination

Posted: Fri Sep 14, 2007 8:38 pm
by changeip
Thanks for the answer,
but what tables do you mean? just don't get it...
you said you were using policy routing, so I assume you have more than 1 routing table...

Re: Special route for specified destination

Posted: Mon Sep 17, 2007 10:08 am
by janisk
about routing, policy routing etc. topics in RouterOS read here:
http://www.mikrotik.com/testdocs/ros/2.9/ip/route.php