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