From: Ivan (ivan@iip.net)
Date: Thu Oct 12 2006 - 06:46:45 ART
R2(config-router)#do sh ip bgp
BGP table version is 41, local router ID is 10.23.20.1
Status codes: s suppressed, d damped, h history, * valid, > best, i -
internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 3.3.3.0/24 10.23.20.2 20 0 65001 i
*> 4.4.4.0/24 10.23.20.2 20 0 65001 i
*> 5.5.5.0/24 10.23.20.2 20 0 65001 i
*> 6.6.6.0/24 10.23.20.2 20 0 65001 i
*> 30.30.30.0/24 10.23.20.2 20 0 65001 i
*> 40.40.40.0/24 10.23.20.2 20 0 65001 i
*> 50.50.50.0/24 10.23.20.2 20 0 65001 i
*> 60.60.60.0/24 10.23.20.2 20 0 65001 i
R2(config-router)#
R2(config-router)#neighbor 10.23.20.2 route-map com-in in
R2(config-router)#
R2(config-router)#do clear ip bgp * in
R2(config-router)#do sh ip bgp
BGP table version is 49, local router ID is 10.23.20.1
Status codes: s suppressed, d damped, h history, * valid, > best, i -
internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 3.3.3.0/24 10.23.20.2 50 0 65001 i
*> 4.4.4.0/24 10.23.20.2 50 0 65001 i
*> 5.5.5.0/24 10.23.20.2 50 0 65001 i
*> 6.6.6.0/24 10.23.20.2 50 0 65001 i
*> 30.30.30.0/24 10.23.20.2 50 0 65001 i
*> 40.40.40.0/24 10.23.20.2 50 0 65001 i
*> 50.50.50.0/24 10.23.20.2 50 0 65001 i
*> 60.60.60.0/24 10.23.20.2 50 0 65001 i
R2(config-router)#
R2(config-router)#do sh route-map com-in
route-map com-in, permit, sequence 10
Match clauses:
Set clauses:
metric +30
Policy routing matches: 0 packets, 0 bytes
On Thursday 12 October 2006 10:50, Michael Zuo 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
-- Ivan
This archive was generated by hypermail 2.1.4 : Wed Nov 01 2006 - 07:29:05 ART