On 28 Sep 2005, phil41 wrote:
> Hello,
>
> I need to modify the metric of network routes announced by a ospf
> router.
> For exemple, half of the announced routes with metric 10 and the other
> half with metric 20.
> For that, I'm using route-map and it's ok for all network matching
> rules except those defined in the router ospf instruction:
>
> router ospf 1
> redistribute connected subnets route-map routes_cnx
> redistribute static subnets route-map routes_stats
> network 172.0.0.0 0.0.0.255 area 0
> network 172.1.0.0 0.0.0.255 area 0
> network 192.168.254.1 0.0.0.0 area 0
>
>
> Is there a way to put a different metric to each network defined in
> router ospf 1 ?
>
> Thanks for your help
>
In OSPF, the metric is based on the bandwidth of the interfaces. The
default is 10*8/BW. You can change this with "ip ospf cost" under
the interface configuration.
Doan
|