Community discussions

MikroTik App
 
davidtik
just joined
Topic Author
Posts: 5
Joined: Sat Jun 09, 2007 11:51 am

Interface Based Routing

Tue Jul 31, 2007 10:23 am

Guys

I'm still stuck with this... prehaps I'm trying to pull off the impossible. I have two default routes, both with the same gateway...

I have two internet connections from the same ISP, both connect using PPPoE via a single Wireless Connection. Basically one of these business grade connection, the other is a home grade connection... I have certain devices that I route via the business grade connection (VoIP devices etc), and the download home grade connection for general downloads etc

Currently I have eth0 connected to my LAN, eth1 is connected to the LAN port of a second router, eth2 and eth3 configured as a bridge. Connected to eth3 is the Wireless Radio, Connected to eth2 is the WAN port of the router that is connected to eth...

So with this, there are two default routes, but by utlising the above, the mirkotik has a different gateway for each, which it seems happy with...

Any ideas how I can get rid of the second router... I have tried Beta 8 (I think), and tried interface routing, but it didnt seem to work to well...

Help Please!
 
alex_rhys-hurn
Member
Member
Posts: 353
Joined: Mon Jun 05, 2006 8:26 pm
Location: Kenya
Contact:

Re: Interface Based Routing

Thu Aug 02, 2007 10:45 am

Hi.

OK, You cant have two default routes as far as I know.

I have a similar set up.

As far as I can tell you have two options of which probably the second suits you best.

1: This link to the mikrotik wiki http://wiki.mikrotik.com/wiki/Load_Balancing_Persistent will show you how to do more of a load balancing thing where you share the two internet links more or less equally so that each link is utilised efficiently.

2: This link to the mikrotik wiki http://wiki.mikrotik.com/wiki/Policy_Ro ... erOS_2.9.x will show you how to configure policy based routing. That is where you analyse your internet traffic, then mark it by type (e.g. mark http pop3 and smtp traffic) and then tell the traffic which path to take to reach the internet, so http to go on the home grade and smtp to go on the business grade link. I have used this to good success.

so, a diagram (of sorts) for both sceanrios

ADSL1 Modem (Home)-----------eth1|--Mikrotik ROuter|eth3-------LAN
ADSL2 Modem (Business)-------eth2|--Mikrotik ROuter|wlan1-------CUSTOMERS

Oh, one thing. To make these work you MUST remember to do your NATting correctly.

OK, so there is now no router no 2, and you have placed all the control and management in the mikrotik router.

Work patiently with the wiki and the manual and then post your configs and problems in the forum and we can help.

Salaams,

Alex
 
davidtik
just joined
Topic Author
Posts: 5
Joined: Sat Jun 09, 2007 11:51 am

Re: Interface Based Routing

Sun Aug 05, 2007 6:04 am

Hi Alex

Issue been here...

Both connections use PPPoE, both PPPoE clients/users are on the mikrotik, both have the same gateway...

So when it comes to adding a rule, it requires a gateway.... which wont work :(

/ip route add gateway=x.x.x.x/x routing-mark=HTTP comment="HTTP Traffic" disabled=no

Thanks

David
 
cmit
Forum Guru
Forum Guru
Posts: 1547
Joined: Fri May 28, 2004 12:49 pm
Location: Germany

Re: Interface Based Routing

Mon Aug 06, 2007 11:16 am

In 3.x you can use the interface name you wish to push the traffic out as a gateway in the routing-table.

So you can write
/ip route add gateway=pppoe-out1 routing-mark=HTTP comment="HTTP Traffic" disabled=no
Best regards,
Christian Meis
 
User avatar
NetTraptor
Frequent Visitor
Frequent Visitor
Posts: 76
Joined: Tue May 17, 2005 4:12 pm
Location: Athens Greece
Contact:

Re: Interface Based Routing

Tue Aug 07, 2007 10:49 am

Time to impliment this one in Winbox... I could not find how to set this one and it was a much wanted feature here! RC1 not bad at all! Just upgraded 2 closely monitored prod routers to give it a try!

Thanks cmit ;-)