cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
969
Views
3
Helpful
2
Replies

OSPF route-map not working

davegibelli
Level 1
Level 1

I have the following ospf configuration:

router ospf 1

network 172.16.11.0 0.0.0.7 area 0

distribute-list route-map TEST in

access-list 1 permit 172.16.11.1

access-list 2 permit 172.16.11.2

!

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?

2 Replies 2

dclark
Level 1
Level 1

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.

Giuseppe Larosa
Hall of Fame
Hall of Fame

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

Giuseppe

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card