[c-nsp] match community support in PBR

Chris Mason chris at noodles.org.uk
Wed Jul 28 12:16:44 EDT 2010


> Does PBR supports match community in route-map? If yes which IOS release?

Matching a community through PBR can be achieved through QPPB.
You would have to use a table-map under BGP to assign an IP Prec value in CEF.

route-map TABLE-MAP permit 10
 match community QPPB-COMMUNITY
 set ip precedence priority
!
route-map TABLE-MAP permit 20
 set ip precedence routine
!

You would then use PBR to match the IP Prec value:

ip access-list extended IPP-1
 permit ip any any precedence priority
!

route-map PBR permit 10
 match ip address IPP-1
 set ip next-hop x.x.x.x
!

You would need to apply "bgp-policy destination ip-prec-map" to allow
CEF to mark your traffic based on the IP Prec values in CEF.
You haven't mentioned what platform you are wanting to do this on?

Hope that helps,
Chris


More information about the cisco-nsp mailing list