CLI Guide
show ip bgp community
View information on all routes with Community attributes or view specic BGP community groups.
Syntax
show ip bgp [ipv4 unicast] community [community-number] [local-as] [no-export]
[no-advertise]
Parameters
ipv4 unicast (OPTIONAL) Enter the keywords ipv4 unicast to view information only related to
ipv4 unicast routes.
community-number
Enter the community number in AA:NN format where AA is the AS number (2 bytes) and
NN is a value specic to that autonomous system.
You can specify up to eight community numbers to view information on those community
groups.
local-AS
Enter the keywords local-AS to view all routes with the COMMUNITY attribute of
NO_EXPORT_SUBCONFED.
All routes with the NO_EXPORT_SUBCONFED (0xFFFFFF03) community attribute must
not be advertised to external BGP peers.
no-advertise
Enter the keywords no-advertise to view all routes containing the well-known
community attribute of NO_ADVERTISE.
All routes with the NO_ADVERTISE (0xFFFFFF02) community attribute must not be
advertised to other BGP peers.
no-export
Enter the keywords no-export to view all routes containing the well-known community
attribute of NO_EXPORT.
All routes with the NO_EXPORT (0xFFFFFF01) community attribute must not be
advertised outside a BGP confederation boundary.
Command Modes
• EXEC
• EXEC Privilege
Supported Modes Full–Switch
Command History
Version Description
9.9(0.0) Introduced on the FN IOM.
9.2(0.0) Introduced on the MXL 10/40GbE Switch IO Module.
Usage Information
To view the total number of COMMUNITY attributes found, use the show ip bgp summary command. The
text line above the route table states the number of COMMUNITY attributes found.
The show ip bgp community command without any parameters lists BGP routes with at least one BGP
community attribute and the output is the same as for the
show ip bgp command output.
Border Gateway Protocol IPv4 (BGPv4) 337