From: Michael Zuo (mzuo@ixiacom.com)
Date: Fri Oct 13 2006 - 21:03:08 ART
As you can see from the output below, the "+" option is not working for
me. the default-metric is 20, so for 30.0 and 31.0 network the metric
on R5 for these routes should be 20+30=50
What am I missing here?
Topology: R1----R5
On R1:
R1(config-route-map)#do sh run | be router os
router ospf 1
router-id 1.1.1.1
log-adjacency-changes
auto-cost reference-bandwidth 20000
area 0 authentication message-digest
redistribute eigrp 100 subnets route-map prefer
network 136.1.15.1 0.0.0.0 area 0
network 150.1.1.1 0.0.0.0 area 0
default-metric 20
distribute-list route-map fromEIGRP in
!
!
no ip http server
ip classless
!
!
!
ip prefix-list BB1 seq 5 permit 212.18.0.0/22 ge 24
!
ip prefix-list BB3 seq 5 permit 30.0.0.0/14 le 32
ip prefix-list BB3 seq 10 permit 31.0.0.0/14 le 32
!
ip prefix-list VLAN3 seq 5 permit 136.1.3.0/24
!
route-map prefer permit 10
match ip address prefix-list BB3
set metric +30
set tag 1
!
route-map prefer permit 20
match ip address prefix-list BB1
set metric 10
set tag 1
!
route-map prefer permit 30
set tag 1
On R5:
O E2 31.3.0.0 [110/30] via 136.1.15.1, 00:00:07, Serial0/0.15
O E2 31.2.0.0 [110/30] via 136.1.15.1, 00:00:07, Serial0/0.15
O E2 31.1.0.0 [110/30] via 136.1.15.1, 00:00:08, Serial0/0.15
O E2 31.0.0.0 [110/30] via 136.1.15.1, 00:00:08, Serial0/0.15
150.1.0.0/24 is subnetted, 6 subnets
R 150.1.7.0 [120/1] via 136.1.57.7, 00:00:25, FastEthernet0/1
O E2 150.1.6.0 [110/20] via 136.1.15.1, 00:00:08, Serial0/0.15
C 150.1.5.0 is directly connected, Loopback0
O 150.1.4.0 [110/12954] via 136.1.245.4, 00:00:08, Serial0/0.245
O E2 150.1.3.0 [110/20] via 136.1.15.1, 00:00:01, Serial0/0.15
O E2 150.1.2.0 [110/20] via 136.1.15.1, 00:00:01, Serial0/0.15
O 150.1.1.0 [110/12954] via 136.1.15.1, 00:00:11, Serial0/0.15
B 205.90.31.0/24 [20/0] via 192.10.1.254, 00:01:33
30.0.0.0/16 is subnetted, 4 subnets
O E2 30.2.0.0 [110/30] via 136.1.15.1, 00:00:01, Serial0/0.15
O E2 30.3.0.0 [110/30] via 136.1.15.1, 00:00:01, Serial0/0.15
O E2 30.0.0.0 [110/30] via 136.1.15.1, 00:00:01, Serial0/0.15
O E2 30.1.0.0 [110/30] via 136.1.15.1, 00:00:01, Serial0/0.15
________________________________
From: Cagri Yucel [mailto:cyucel@gmail.com]
Sent: Thursday, October 12, 2006 11:46 PM
To: Michael Zuo
Cc: ccielab@groupstudy.com
Subject: Re: Problem with set metri command
Well does the same thing if you assume if you always have the default
metric of zero. If somehow you have a metric of 50 already one ends up
with 30 other 80 :)
On 10/12/06, Michael Zuo <mzuo@ixiacom.com> wrote:
Hi Group,
can any one give me some help on the "set metric" command? more
specifically,
what is the difference between "set metric +30" and "set metric 30"?
the
following configuration is supposed to add 30 to the metric of
redistributed
routes. but instead, it sets the metric to 30. this suggests that the
two
command do exactly the same thing. is this correct?
thanks in advance...
=====================
R1(config-route-map)#set metric ?
+/-<metric> Add or subtract metric
<0-4294967295> Metric value or Bandwidth in Kbits per second
<cr>
R1(config-route-map)#do sh run | be router os
router ospf 1
router-id 1.1.1.1
log-adjacency-changes
auto-cost reference-bandwidth 20000
area 0 authentication message-digest
redistribute eigrp 100 subnets route-map prefer
network 136.1.15.1 0.0.0.0 area 0
default-metric 20
!
no ip http server
ip classless
!
!
!
ip prefix-list BB1 seq 5 permit 212.18.0.0/22 ge 24
!
ip prefix-list BB3 seq 5 permit 30.0.0.0/14 le 32
ip prefix-list BB3 seq 10 permit 31.0.0.0/14 le 32
!
route-map prefer permit 10
match ip address prefix-list BB3
set metric +30
!
route-map prefer permit 20
!
This archive was generated by hypermail 2.1.4 : Wed Nov 01 2006 - 07:29:05 ART