DGS-3620 m/ mSW Rls. 1.02.000
2-92 show ip bgp community
show ip bgp community COMMUNITY [exact-match]
Syntax Description
COMMUNITY
exact-match
Default
Command Mode
Usage Guideline
Example
Switch# show ip bgp community local-as
BGP Local Router ID is 10.90.90.90
Status codes: s suppressed, d damped, h history, * valid, > best, i -
internal
Origin codes: i - IGP, e - EGP, ? - incomplete
IP Address/Netmask
*>10.10.10.0/24
*>10.10.20.0/24
*>10.20.10.0/24
Switch#
CLI Reference Guide
Use this command to display routes which are matching the community.
A community is in the form of <as-number> : <udn-number> or any of the following
predefined values: internet, no-export, local-as, no-advertise. A community
string can be formed by multiple communities, separated by a comma.
An example of a community string is 200:1024, 300:1025, 400:1026.
(Optional) If specified, communities need to match exactly.
If not specified, then there are two cases:
If internet is contained in the community list, then all routes will match.
If not, then the community needs to be a subset of route's community to match.
None
Privileged mode
Use this command to display the routes which match the community specified.
When using this command with exact-match parameter, only the routes which
community attribute exactly match will be displayed.
This example output from the show ip bgp community command in privileged mode.
Gateway
172.16.10.1
172.16.10.1
172.16.10.1
show ip bgp community Field Description
Metric
LocPrf
0
0
0
show ip bgp community
Weight
Path
300
10i
300
10i
300
10i
152