Chapter 50
| IP Routing Commands
Border Gateway Protocol (BGPv4)
– 1142 –
show ip bgp
community
This command shows routes that belong to specified BGP communities.
Syntax
show ip bgp community [{[AA:NN] [internet] [local-as] [no-advertise]
[no-export]} [exact-match]]
AA:NN – Standard community-number to match. The 4-byte community
number is composed of a 2-byte autonomous system number and a 2-byte
network number, separated by one colon. Each 2-byte number can range
from 0 from 65535. One or more communities can be entered, separated by
a space. Up to 16 community numbers are supported.
internet – Specifies the entire Internet. Routes with this community
attribute are advertised to all internal and external peers.
local-as – Specifies the local autonomous system. Routes with this
community attribute are advertised only to peers that are part of the local
autonomous system or to peers within a sub-autonomous system of a
confederation. These routes are not advertised to external peers or to other
sub-autonomous systems within a confederation.
no-advertise – Routes with this community attribute are not advertised to
any internal or external peer.
no-export – Routes with this community attribute are advertised only to
peers in the same autonomous system or to other sub-autonomous
systems within a confederation. These routes are not advertised to external
peers.
exact-match – Displays only routes that match the specified communities
exactly.
Command Mode
Privileged Exec
Example
Console#show ip bgp community
BGP table version is 0, local router ID is 192.168.0.2
Status codes: s suppressed, d damped, h history, * valid, > best, i internal,
r RIB-failure, S Stale, R Removed
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
* 100.1.1.0/24 0.0.0.0 32768 700 800 i
*> 172.0.0.0/8 0.0.0.0 32768 700 800 i
Total number of prefixes 2
Console#