chane ospf metric

Unanswered Question
Dec 1st, 2008

can i change ospf update metric using route map? note i have one ospf instance.

the configuration:

router ospf 1


network area 0

network area 0

distribute-list route-map cisco in

route-map cisco permit 10

match ip route-source 2 10

set metric -20

access-list 2 permit

access-list 2 permit

access-list 10 permit

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Giuseppe Larosa Mon, 12/01/2008 - 10:22

Hello Mohamed,

OSPF is link state so I don't think your configuration can work and also setting a negative metric is not allowed (probably can only be used with MPLS TE tunnels) in normal IPv4 routing.

You can influence the router to use or not to use the link state information received by modifying the ospf cost of the link to router with OSPF router-id

Hope to help


thotsaphon Mon, 12/01/2008 - 10:28

hi mohamed,

I think ,It's not going to work. Because a "distribute-list in" command lets the router to put OSPF routes into the RIB as allowed by a distribute-list command. It already passed the process of SPF to calculate the metric. You can modify the bandwidth or cost on the interface to accomplish this!!!



This Discussion