Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

Bronze

Community List manipulation in BGP

Hi,

We are receiving prefixes from our partners with multiple communities set which is specific to the locations. Say for exampls

xxxx:xxaa

xxxx:xxab

xxxx:xxac

Similar to the above one.

I want to set the preference high for all the communities xxxx:xx-- the last 2 digits can be any value.

The last 2 digits are actually dont care bits.

One way is to define the community list with as many entries as the communities that i m receiving from the partner and set the local preference with route map. But the problem here is i m receiving around 50 communities from the same partner.

I want to add a single entry in community list with last 2 digits being dont care.

somthing like

ip community-list test permit xxxx:xx**

Is it any way I can achieve this.

thanks

Arun Kumar

1 REPLY
Hall of Fame Super Silver

Re: Community List manipulation in BGP

Hello Arun,

this is possible using expanded community-list.

see

http://www.cisco.com/en/US/docs/ios/iproute/command/reference/irp_bgp2.html#wp1016057

the command should be

ip community-list expanded test permit xxxx:xx*

one wildcard should be enough

Hope to help

Giuseppe

324
Views
0
Helpful
1
Replies
CreatePlease to create content