Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

OSPF route-map not working

I have the following ospf configuration:

router ospf 1

network area 0

distribute-list route-map TEST in

access-list 1 permit

access-list 2 permit


route-map TEST permit 10

match ip next-hop 1

set metric +20


route-map TEST permit 20

match ip next-hop 2

set metric +10

However, the match statement works as expected but the set metric +10 does nothing!

Why can I not adjust received metrics?

New Member

Re: OSPF route-map not working

The distribute-list command is used to prevent Open Shortest Path First (OSPF) routes from being added to the routing table. It can't really used to adjust metrics.

Hall of Fame Super Silver

Re: OSPF route-map not working

Hello Dave,

>> Why can I not adjust received metrics?

OSPF is a link state protocol the metric is computed building a SPF tree rooted at the local node and adding link costs on the path and the cost parameters in the LSA data structure that describes the route.

The kind of action you are trying is compatible with a distance vector protocol behavior like RIP.

Hope to help


CreatePlease login to create content