Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > Cisco > modifying route metric with ospf

Reply
Thread Tools

modifying route metric with ospf

 
 
phil41
Guest
Posts: n/a
 
      09-28-2005
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

 
Reply With Quote
 
 
 
 
Doan
Guest
Posts: n/a
 
      09-28-2005
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


 
Reply With Quote
 
 
 
 
cisco
Guest
Posts: n/a
 
      09-29-2005
i could be wrong but you should be trying to modify the metric on the
receing router . route map is the correct way to do it . e

 
Reply With Quote
 
phil41
Guest
Posts: n/a
 
      09-29-2005
Yes but metric will be the same for the 3 networks and I need to put
distinct metrics for them.

Phil

 
Reply With Quote
 
phil41
Guest
Posts: n/a
 
      09-29-2005
I can't, the receiver is my provider router.

Phil

 
Reply With Quote
 
cisco
Guest
Posts: n/a
 
      09-29-2005
ok

why not just use the keyword "metric"

let say for example you want your static to be redistributed with a
metric of 10

router ospf 1
redistribute static metric 10 subnets

 
Reply With Quote
 
Merv
Guest
Posts: n/a
 
      09-29-2005
The short answer is no.

What is the routing problem that you are trying to solve ???

 
Reply With Quote
 
phil41
Guest
Posts: n/a
 
      09-30-2005
I'm migrating my company sites internework from Frame Relay to an
operator MPLS network.
For each location, I have several internal networks and custumer access
points.
Actually, each network is static routed by the operator through the
MPLS backbone.
The objective is to expend my ospf routing over the mpls.

For each location I have the following
myrouter1-CE1-PE1
myrouter2-CE2-PE2

myrouter1-2 and CE1-CE2 are in the same ospf area.
myrouter1 and 2 are in HSRP and have the same networks and route
declared.

For load sharing and backup purpose, my operator ask me to modify the
metric for half of the routes announced by myrouter1 and myrouter2:
myrouter1 routelist1 metric 10
myrouter1 routelist2 metric 20
myrouter2 routelist1 metric 20
myrouter2 routelist2 metric 10

I can do that for static and connected subnet with route-map but not
for networks declared in the router ospf command.

 
Reply With Quote
 
Doan
Guest
Posts: n/a
 
      09-30-2005
On 30 Sep 2005, phil41 wrote:

> I'm migrating my company sites internework from Frame Relay to an
> operator MPLS network.
> For each location, I have several internal networks and custumer access
> points.
> Actually, each network is static routed by the operator through the
> MPLS backbone.
> The objective is to expend my ospf routing over the mpls.
>
> For each location I have the following
> myrouter1-CE1-PE1
> myrouter2-CE2-PE2
>
> myrouter1-2 and CE1-CE2 are in the same ospf area.
> myrouter1 and 2 are in HSRP and have the same networks and route
> declared.
>
> For load sharing and backup purpose, my operator ask me to modify the
> metric for half of the routes announced by myrouter1 and myrouter2:
> myrouter1 routelist1 metric 10
> myrouter1 routelist2 metric 20
> myrouter2 routelist1 metric 20
> myrouter2 routelist2 metric 10
>
> I can do that for static and connected subnet with route-map but not
> for networks declared in the router ospf command.
>

I don't think you can do that within ospf. Since both routers are in
the same area, they share the same database. One solution might be
to run another routing protocol for those networks and then redistribute
them into ospf using route-maps just as you did with the static and
conntected subnets.

Doan


 
Reply With Quote
 
Merv
Guest
Posts: n/a
 
      09-30-2005
You perhaps need to have further discussion with your MPLS provider
about the pros and cons of the variosu MPLS CE-PE routing protocols.

For example, what the provider is asking you to do would be trivial if
BGP were the MPLS CE-PE routing protocol. However that may mean
redistributing your OSPF routes into BGP.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Summarized EIGRP route selects best/worst metric of its component route ? pvarulkumar Cisco 0 10-14-2008 11:23 AM
What is the default precedence: local-route, static-route,OSPF-route? ilan.berco@gmail.com Cisco 9 08-07-2008 05:42 PM
How OSPF metric? BB Cisco 3 06-18-2008 12:00 PM
Modify OSPF default metric learned from BGP response3 Cisco 0 04-23-2007 05:34 PM
Redistribute static to OSPF, overriding the slower OSPF-native route? E.Finlayson Cisco 0 09-10-2004 02:13 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57