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

Finding BGP received communities

bapatsubodh
Level 1
Level 1

Hi,

Is there any way to find out what BGP communities are received from particular neighbor and on which pre-fixes?  Can we filter or block the pre-fixes according to the community by which they are marked.

Thanks

Subodh

1 Reply 1

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello Subodh,

you can use a previuosly defined community-list to filter BGP table:

sh ip bgp ?
  A.B.C.D          IP prefix /, e.g., 35.0.0.0/8
  A.B.C.D          Network in the BGP routing table to display
  all              All address families
  cidr-only        Display only routes with non-natural netmasks
  community        Display routes matching the communities
>>>>  community-list   Display routes matching the community-list

of you can use sh ip bgp A.B.C.D to see details for a specific prefix

Hope to help

Giuseppe

Review Cisco Networking products for a $25 gift card