[c-nsp] Match on MED in BGP inbound route-map

Ravi Vaidyanathan vravi at research.telcordia.com
Tue Apr 26 12:25:54 EDT 2005


I am setting up a configuration where I would like to match on the incoming
MED values from my peer AS. I am using ip policy-list configuration to match
on the MED values (sanitized configuration snapshot below), but am having
trouble getting the communities set based on the incoming MED (it appears to
ignore the incoming MED and simply execute the set condition in the first
route-map entry). 

!         
route-map IN-COMM permit 10
 match policy-list METRIC_10
 set community 100:10
!         
route-map IN-COMM permit 20
 match policy-list METRIC_20
 set community 100:20
!         
route-map IN-COMM permit 30
 match policy-list METRIC_30
 set community 100:30
!         

!         
ip policy-list METRIC_30 permit
 match metric 30
!         
ip policy-list METRIC_20 permit
 match metric 20
!         
ip policy-list METRIC_10 permit
 match metric 10
!         

#sh ip bgp 172.19.2.0
BGP routing table entry for 172.19.2.0/24, version 3
Paths: (1 available, best #1, table Default-IP-Routing-Table)
  Advertised to non peer-group peers:
  172.17.1.134 172.18.5.2 
  90 65001
    172.18.4.2 from 172.18.4.2 (172.17.1.141)
      Origin IGP, metric 30, localpref 100, valid, external, best
      Community: 100:10

Any suggestions would be much appreciated. 

thanks,
Ravi




More information about the cisco-nsp mailing list