From: Michael Zuo (mzuo@ixiacom.com)
Date: Thu Oct 12 2006 - 03:50:10 ART
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