cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2484
Views
5
Helpful
1
Replies

Changing the metric of a External OSPF route

pauloroque
Level 1
Level 1

Hi All,

I want to change a metric of a external type-1 ospf route. But I can't make it work.

The route I want to change metric is 10.198.14.150/32 and it is redistributed from a static route in another neighbor router (R2).

This is my configuration.

------

! R2

router ospf 200

redistribute static metric-type 1 subnets

network 10.0.0.0 0.0.255.255 area 0

ip route 10.198.14.150 255.255.255.255 10.0.1.21

------

! R1

router ospf 200

network 10.0.0.0 0.0.255.255 area 0

distribute-list route-map GATO-MAP in

ip access-list standard GATO-ACL

permit 10.198.14.150

route-map GATO-MAP permit 10

match ip add GATO-ACL

set metric 1000

route-map GATO-MAP permit 20

---------------------------------------

I know that the problem is related to external routes because if I try to change the metric of internal route using the same configuration it works.

Below is the configuration that works:

------

R2

router ospf 200

redistribute static metric-type 1 subnets

network 10.0.0.0 0.0.255.255 area 0

int loopback20

ip add 10.198.14.150 255.255.255.255

------

R1

router ospf 200

network 10.0.0.0 0.0.255.255 area 0

distribute-list route-map GATO-MAP in

ip access-list standard GATO-ACL

permit 10.198.14.150

route-map GATO-MAP permit 10

match ip add GATO-ACL

set metric 1000

route-map GATO-MAP permit 20

1 Reply 1

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello Paulo,

try to use the same route-map but directly in the redistribute command:

router ospf 200

redistribute static metric-type 1 subnets route-map GATO-MAP

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