v7.18.1 && v7.19beta2 - Error in metric

Hi,

I need to change the distance of BGP and RIP routes in the “OUT FILTER” output and the following syntax does not work:

For example, I need the routes advertised to my RIP or BGP neighbor to set the distance to RIP 200 and BGP 5:

 /routing/filter/rule
    add chain=RIP_OUT disabled=no rule="set distance 200; accept"
    add chain=RIP_OUT disabled=no rule="set rip-metric 200; accept"



 /routing/filter/rule
    add chain=BGP_OUT disabled=no rule="set distance 5; accept"



/routing/rip/instance
    add name=prueba out-filter-chain=RIP_OUT ....



/routing/bgp/template
    add name=bgp100 output.filter-chain=BGP_OUT ....

Neighbors still see routes with:

RIP distance 120
eBGP distance 20

Is this syntax correct? Is it incorrect?

Of course, you cannot change distance on remote machines. Distance is a local parameter.

please change the topic name, “Routing filter not working” - is a false statement

Hi,

How is this translated in mikrotik?

router rip
  version 2
  redistribute bgp 65000 metric 200
 exit

I am interested in the redistribute BGP metric

Thanks!

to send rip metric for redistributed routes “set rip-ext-metric 200;”
but rip metric is not distance anyway.

Thanks!