by used access-map
1- create access list command
(config)#access-list 10 permit 10.10.10.0 0.0.0.255
(config)#access-list 10 permit 20.20.10.0 0.0.0.255
2- create route map bye:-
route-map map-name {permit | deny} [sequence-number]
route-map ccnp permit 10
3-used match command
(config-route-map)# match ip address 10
4- used set command
(config-route-map)# set metric 20
above exame used to change metric to network 10.10.10.0/24 and 20.20.10.0/24 to 20
command route map
route-map map-name {permit | deny} [sequence-number]
match {ip address ... }
set {metric,community,clauses....}