Increasing metric (hop count) in RIP-announced routes

Hello everyone.

I’m new in using Vyos router, and i would like to increase the metric of a route learnt by RIP from another router. The scenario is as:

R1 —> R2 -----> R3

R1 announces, let say, 10.0.0.0/24 by RIP to R2, which announces it to R3. So, in a usual scenario, R3 would have a metric of 2 for route 10.0.0.0/24. The answer is, ¿how can i increase this metric in R2, in a such a way that R3 receives the route with a metric of +1?

I´ve tried something like (show policy output):

 prefix-list anyIp {
     rule 10 {
         action permit
         ge 1
         le 32
         prefix 0.0.0.0/0
     }
 }
 route-map increaseDefaultMetric {
     rule 10 {
         action permit
         match {
             ip {
                 address {
                     prefix-list anyIp
                 }
             }
         }
         set {
             metric +1
         }
     }
 }

 rip {
     neighbor 172.16.3.1
     neighbor 172.16.3.2
     neighbor 10.0.2.20
     passive-interface default
     redistribute {
         connected {
             metric 2
             route-map routesNotToBeExported
         }
     }
     route-map increaseDefaultMetric
 }

but no effect. Sure I’m configuring something wrongly.

What I’m looking for is something similar to “offset-list” command in Cisco devices.

¿Any ideas?

Thanks in advance

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.