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?
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.)
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.