Community discussions

MikroTik App
 
Enemy
just joined
Topic Author
Posts: 9
Joined: Tue Jun 05, 2007 6:48 pm

Special route for specified destination

Thu Sep 13, 2007 11:58 pm

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?
 
changeip
Forum Guru
Forum Guru
Posts: 3833
Joined: Fri May 28, 2004 5:22 pm

Re: Special route for specified destination

Fri Sep 14, 2007 2:30 am

do you need to add this route rule on any alternate routing tables ? Is it using the right table basically...
 
Enemy
just joined
Topic Author
Posts: 9
Joined: Tue Jun 05, 2007 6:48 pm

Re: Special route for specified destination

Fri Sep 14, 2007 8:47 am

Thanks for the answer,
but what tables do you mean? just don't get it...
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: Special route for specified destination

Fri Sep 14, 2007 12:24 pm

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
 
changeip
Forum Guru
Forum Guru
Posts: 3833
Joined: Fri May 28, 2004 5:22 pm

Re: Special route for specified destination

Fri Sep 14, 2007 8:38 pm

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...
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: Special route for specified destination

Mon Sep 17, 2007 10:08 am

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