Re: modifying route metric with ospf



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


.



Relevant Pages

  • modifying route metric with ospf
    ... I need to modify the metric of network routes announced by a ospf ... I'm using route-map and it's ok for all network matching ... rules except those defined in the router ospf instruction: ... redistribute connected subnets route-map routes_cnx ...
    (comp.dcom.sys.cisco)
  • Re: ospf network statement - correct use (long)
    ... network statement for OSPF should be used with subnets on which you ... another router. ... Snippets of the basic interface config for each router are as follows: ... The only routes that are "internal" are those where OSPF is running on the ...
    (comp.dcom.sys.cisco)
  • ospf flood kills interface
    ... post configs or diagram if needed. ... I have a multi-area ospf network with Cisco 3640's running IOS 12.4. ... Router 2 has the interface in area 2 for my wireless ISP ...
    (comp.dcom.sys.cisco)
  • Re: basic ospf question!
    ... router ospf 100 ... what I saw was that ospf would learn about the neighbor but no routes ... ' redistribute static' to both routers and I saw OSPF type E2 routes ...
    (comp.dcom.sys.cisco)
  • FreeBSD/zebraOSPF not updating routingtables
    ... I am trying to get OSPF working but it won't work. ... but no routing tables are updated. ... description dummy/loopback interface ... OSPF Routing Process, Router ID: ...
    (comp.unix.bsd.freebsd.misc)