Advanced Routing Decision

http://wiki.mikrotik.com/wiki/Route#Routing_table_lookup

If there is no routing cache entry for this packet, it is created by running routing decision:

  • check that packet has to be locally delivered (destination address is address of the router)
  • process implicit policy routing rules
  • process policy routing rules added by user

what implicit policy routing rules exists?

I’m digging this because I need to do the following:

lookup routing table ‘common’ (without default route);
if route was not selected, then either send packet to one of the default gateways (depending on the src-address of packet), or simply discard packet for some set of src-addresses;

‘common’ routing table is filled dynamically by BGP peer

p.s. it’s my 2200th post :open_mouth:

  1. implicit routing rules are in format
    routing-mark= action=lookup table=
    for each active routing mark.

  2. when route lookup fails in policy routing table, the lookup proceeds to
    other tables, in particular, to user lookup rules, and then to the main
    table.

  3. this behavior is changed in routing-test, where user rules are processed
    before implicit rules.
    VRF tables are also different from simple policy routing tables, because if
    route lookup fails in VRF table, no further lookups are made.

oh, thanks, then that is what I have discovered yesterday =) will Wiki be corrected?