To verify the BGP large community, use the following commands.
This example displays entries in the IP version 4 (IPv4) BGP routing table.
Device # show bgp ipv4 unicast 2.2.2.2
BGP routing table entry for 2.2.2.2/32, version 2
Paths: (1 available, best #1, table default)
Not advertised to any peer
Refresh Epoch 1
67001
19.0.101.1 from 19.0.101.1 (19.0.101.1)
Origin IGP, localpref 100, valid, external, best
Large Community: 67001:0:2
rx pathid: 0, tx pathid: 0x0
Updated on Nov 1 2020 01:18:02 PST
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 the 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 the last two examples above, 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 51
Large Community standard list 51
permit 1:2:3 5:6:7
This example displays a match with large community list.
Device# show ip bgp largecommunity-list 51 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 ?