Page 1 of 1

Please describe "routing-table=" statement

Posted: Sat Sep 04, 2010 8:51 am
by bda
Dear developers, describe please "routing-table=" statement, and how it impact on mp-bgp. There is no clear detail description in wiki.

Should the default bgp instance be in some routing table? And what about vrf`s? Every vrf in separate routing table? Why winbox does not have this property for vrf?

Re: Please describe "routing-table=" statement

Posted: Sat Sep 04, 2010 9:55 am
by blake
The default BGP instance is in the main routing table (routing-table=main). You are allowed to create additional routing tables for the purpose of policy routing. VRFs are each their own routing table. Although, MikroTik's VRF implementation doesn't create 'real' VRF's like Cisco or Juniper. It is actually just policy routing with a few differences:
Routes in VRF tables resolve next-hops in their own route table by default, while policy routes always use the main route table.

Route lookup is different. For policy routing: after route lookup has been done in policy-route table, and no route was found, route lookup proceeds to the main route table. For VRFs: if lookup is done, and no route is found in VRF route table, the lookup fails with "network unreachable" error. (You can still override this behavior with custom route lookup rules, as they have precedence.)
http://wiki.mikrotik.com/wiki/Manual:Vi ... escription

The routing-table parameter under /routing bgp instance lets you specify which table you want that particular BGP instance to bind to. It uses the same tables you established under /ip route or /ip route vrf with the routing-mark argument.

Refer to these docs for a bit more info on multiple routing tables in Linux and VRFs, if needed.

http://linux-ip.net/html/routing-tables.html
http://en.wikipedia.org/wiki/VRF

Re: Please describe "routing-table=" statement

Posted: Sat Sep 04, 2010 7:27 pm
by bda
Thanks for detailed explanation! But than we can do it for bgp instance via winbox?

Re: Please describe "routing-table=" statement

Posted: Sun Sep 05, 2010 12:08 pm
by mrz
Yes you can configure it in winbox.
Routing->BGP->VRFs(tab)

Re: Please describe "routing-table=" statement

Posted: Sun Sep 05, 2010 1:46 pm
by bda
Yes you can configure it in winbox.
Routing->BGP->VRFs(tab)
But I cant specify routing table parameter for bgp instance via winbox. Is it right?

Re: Please describe "routing-table=" statement

Posted: Mon Sep 06, 2010 12:42 pm
by bda
Yes you can configure it in winbox.
Routing->BGP->VRFs(tab)
But I cant specify routing table parameter for bgp instance via winbox. Is it right?
Dear developers, could you describe situation with routing table parameter and winbox, please... Sorry for bumping this post...

Re: Please describe "routing-table=" statement

Posted: Mon Sep 06, 2010 6:59 pm
by Chupaka
some new parameters are available only in Terminal. later they are being added to WinBox

Re: Please describe "routing-table=" statement

Posted: Tue Sep 07, 2010 10:59 pm
by bda
some new parameters are available only in Terminal. later they are being added to WinBox
Ok, thanks. Understood.