community-number(s)— One or more BGP community numbers. Community numbers are in the range of 1 to 4294967295. Well-known community keywords that may be used are local-as, no-advertise, and no-export (see section 8-28).
line— Regular expression. See Appendix B.
Purpose: To display the contents of the local BGP routing table for prefixes matching the supplied community number(s).
Cisco IOS Software Release: 10.3. The local-as keyword was added in Cisco IOS Software Release 12.0. Example: Display BGP Prefixes Belonging to a Specific Community
Routes belonging to a specific community can be listed using the show ip bgp community command followed by the community value of interest.
rtrA# show ip bgp community no-export
BGP table version is 41, local router ID is 10.1.1.2
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal Origin codes: i - IGP, e - EGP, ? - incomplete
Next Hop 10.1.1.1
Metric LocPrf Weight Path
0 0 65530 i
community-list-number— IP community list number. Valid list numbers are 1 to 199.
line— Regular expression. See Appendix B, "Regular Expressions."
Purpose: To display the contents of the local BGP routing table for prefixes matching the community listed in the community list.
Cisco IOS Software Release: 10.3
Was this article helpful?