Re: Problem with set metri command

From: Cagri Yucel (cyucel@gmail.com)
Date: Fri Oct 13 2006 - 03:45:58 ART


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
> !
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
>

-- 
-cagri


This archive was generated by hypermail 2.1.4 : Wed Nov 01 2006 - 07:29:05 ART