Routing and Networking Protocols
These pages explain how RouterOS chooses and installs routes, and how to configure the routing protocols.
| Task | Page | Menu |
|---|---|---|
| Understand how the router chooses a route and resolves its gateway | Routing Decision | /ip/route, /routing/route |
| Accept, reject or change the routes that protocols receive and send | Route Selection and Filtering | /routing/filter/rule |
| Send traffic through another gateway by source, interface or mark | Policy Routing | /routing/table, /routing/rule |
| Keep the routes of customers or services apart, and build an L3VPN | VRF | /ip/vrf, /routing/bgp/vpn |
| Choose route distinguishers and route targets for VPN services | Route Distinguisher and Route Target | /routing/bgp/vpn |
| Run BGP, OSPF, RIP, IS-IS, BFD, RPKI or EVPN | Unicast | /routing |
| Switch packets by labels with LDP or RSVP-TE, and build VPLS | MPLS | /mpls |
| Route multicast with PIM-SM or the IGMP proxy | Multicast | /routing/pimsm, /routing/igmp-proxy |
| See the routing processes and spread BGP sessions over the CPU cores | Routing Protocol Multi-core Support | /routing/stats/process |
| Move a routing configuration from RouterOS v6 | Moving from ROSv6 to ROSv7 |
Routing Decision
Routing decision in MikroTik RouterOS involves selecting paths for packet transmission using FIB and RIB tables, managing connected networks, default routes, and hardware offloading for efficient packet forwarding.
Moving from ROSv6 to ROSv7
What works differently in RouterOS v7 routing compared with v6: routing tables and rules, policy routing with mangle, nexthop lookup, OSPF, BGP (instance, connection, template, networks, advertisements), routing filters, RPKI and RIP, with v7 examples.
Routing Protocol Multi-core Support
RouterOS runs routing tasks such as FIB updates, routing protocols and BGP sessions in separate processes. How to see the processes and their memory, and how BGP input and output affinity places sessions in processes.
Policy Routing
Policy routing in RouterOS allows steering traffic based on criteria to specific gateways, using custom routing tables and rules. It supports dynamic routing decisions with firewall mangle marking or basic routing rule configurations for traffic control.
VRF
Configure VRFs in RouterOS: create a VRF and its routing table, routes and gateways in a VRF, VRF-aware services, firewall rules for VRF interfaces, VRF-lite internet access with NAT, route leaking with static routes and BGP VPN, and an MPLS VPN (L3VPN) between two PE routers.
Unicast
7 items
MPLS
4 items
Multicast
3 items
Route Distinguisher and Route Target
Route distinguishers make equal customer prefixes unique VPN routes, and route targets decide which VRF or VPN instance imports a route. Formats, encoding and an L3VPN example.
Route Selection and Filtering
Routing filters in RouterOS accept, reject and change the routes that routing protocols receive and send, with script-like rules grouped in chains. Select rules choose which candidate routes BGP sends to a peer.