From: Troy (ta_levin@yahoo.com)
Date: Thu Oct 21 2004 - 16:05:03 GMT-3
I am trying to use and inbound route-map to set BGP routes to a metric of zero. However it appears that the route-map actually is setting the metric to a NULL value. Is this to be expected?
.....it looks as though the 'set metric 0' is actually setting the metric to "null"
example:
r2#show run | b router bgp
router bgp 200
no synchronization
bgp log-neighbor-changes
neighbor 65.1.1.1 remote-as 100
no auto-summary
r2#show ip bgp
BGP table version is 2, local router ID is 65.1.1.2
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
*> 1.1.1.1/32 65.1.1.1 0 0 100 i
***********************************************
****Example with route-map
router bgp 200
no synchronization
bgp log-neighbor-changes
neighbor 65.1.1.1 remote-as 100
neighbor 65.1.1.1 route-map med in
no auto-summary
!
route-map med permit 10
set metric 0
r2#
8w0d: %BGP-5-ADJCHANGE: neighbor 65.1.1.1 Up
r2#show ip bgp
BGP table version is 2, local router ID is 65.1.1.2
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
*> 1.1.1.1/32 65.1.1.1 0 100 i <-----IOS unable to set metric to zero....thus creating null value
***********************************************
-Config with "bgp bestpath med missing-as-worst" added
r2#show run | b router bgp
router bgp 200
no synchronization
bgp log-neighbor-changes
bgp bestpath med missing-as-worst
neighbor 65.1.1.1 remote-as 100
neighbor 65.1.1.1 route-map med in
no auto-summary
!
route-map med permit 10
set metric 0
r2#show ip bgp
BGP table version is 2, local router ID is 65.1.1.2
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
*> 1.1.1.1/32 65.1.1.1 4294967294 0 100 i <-----metric set at worst
---------------------------------
Do you Yahoo!?
vote.yahoo.com - Register online to vote today!
This archive was generated by hypermail 2.1.4 : Sat Nov 06 2004 - 17:11:51 GMT-3