cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
854
Views
0
Helpful
1
Replies

Community List manipulation in BGP

arun kumar
Level 1
Level 1

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 1

Giuseppe Larosa
Hall of Fame
Hall of Fame

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

Review Cisco Networking for a $25 gift card