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

log-adjacency-changes

network 10.1.1.0 0.0.0.255 area 0

network 33.33.33.33 0.0.0.0 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 22.22.22.22

access-list 2 permit 10.1.1.2

access-list 10 permit 22.22.22.22 0.0.0.0

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
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 22.22.22.22.

Hope to help

Giuseppe

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!!!

Toshi

Actions

This Discussion