Community discussions

MikroTik App
 
wispmikrotik
Member Candidate
Member Candidate
Topic Author
Posts: 156
Joined: Tue Apr 25, 2017 10:43 am

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

Fri Mar 07, 2025 11:09 am

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?
Last edited by wispmikrotik on Fri Mar 07, 2025 1:52 pm, edited 1 time in total.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7208
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: v7.18.1 && v7.19beta2 - Routing filter not working

Fri Mar 07, 2025 12:18 pm

Of course, you cannot change distance on remote machines. Distance is a local parameter.
 
User avatar
baragoon
Member
Member
Posts: 399
Joined: Thu Jan 05, 2017 10:38 am
Location: Kyiv, UA
Contact:

Re: v7.18.1 && v7.19beta2 - Routing filter not working

Fri Mar 07, 2025 1:00 pm

please change the topic name, "Routing filter not working" - is a false statement
 
wispmikrotik
Member Candidate
Member Candidate
Topic Author
Posts: 156
Joined: Tue Apr 25, 2017 10:43 am

Re: v7.18.1 && v7.19beta2 - Routing filter not working

Fri Mar 07, 2025 1:57 pm

Of course, you cannot change distance on remote machines. Distance is a local parameter.
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!
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7208
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: v7.18.1 && v7.19beta2 - Error in metric  [SOLVED]

Fri Mar 07, 2025 2:09 pm

to send rip metric for redistributed routes "set rip-ext-metric 200;"
but rip metric is not distance anyway.
 
wispmikrotik
Member Candidate
Member Candidate
Topic Author
Posts: 156
Joined: Tue Apr 25, 2017 10:43 am

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

Fri Mar 07, 2025 2:16 pm

Thanks!