To verify the BGP large community, use the following command. This example shows a list of routes that contain all of the
large communities given in the command. The listed routes may contain additional large communities.
Device# show bgp large-community 1:2:3 5:6:7
BGP table version is 17, local router ID is 1.1.1.3
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
*>i 5.5.5.5/32 1.1.1.2 0 100 0 ?
*>i 5.5.5.6/32 1.1.1.2 0 100 0 ?
This example displays the listed routes that contain only the given large communities when you add the keyword exact-match
in configuration.
Device#show bgp large-community 1:2:3 5:6:7 exact-match
BGP table version is 17, local router ID is 1.1.1.3
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
*>i 5.5.5.5/32 1.1.1.2 0 100 0 ?
In these examples, the routes 5.5.5.5/32 and 5.5.5.6/32 contain both the large communities 1:2:3 and 5:6:7. The route 5.5.5.6/32
contains some additional large communities.
This example displays a large-community list.
Device#show ip largecommunity-list 20
Large Community standard list 20
permit 1:1:2
Device#show bgp large-community-list 20
Large Community standard list 20
permit 1:1:2