show bgp community

Syntax

show bgp [{ipv4 | ipv6 | ipv4 {vrf <VRF-NAME>}} unicast] 
     community [<VALUE> | <TYPE>] [vsx-peer]

Description

This command shows routes that belong to BGP communities. Optionally you can specify displaying information by a specific community or by VRF.

Command context

Operator (>) or Manager (#)

Parameters

ipv4

Shows the information for an IPv4 address family.

ipv6

Shows the information for an IPv6 address family.

unicast

Shows the information for a subaddress family identifier.

ipv4 vrf <VRF-NAME>

Shows the information for a specified VRF.

<VALUE>

Shows the information for a community number. Specify the information in aa:nn format.

<TYPE>
Shows a specified community type. Select the following well-known communities, as well as others:
internet

Advertise the prefix to all BGP neighbors.

local-as

Do not advertise the prefix outside the sub-AS.

no-advertise

Do not advertise the prefix to any BGP neighbors.

no-export

Do not advertise the prefix to any eBGP neighbors.

[vsx-peer]

Shows the output from the VSX peer switch. If the switches do not have the VSX configuration or the ISL is down, the output from the VSX peer switch is not displayed.

Authority

Operators or Administrators. Users without administrator authority can execute this command from the operator context (>) only.

Examples

Showing information for routes that belong to all BGP communities:

switch# show bgp ipv4 unicast community
Status codes: s suppressed, d damped, h history, * valid, > best, = multipath,
              i internal, e external S Stale, R Removed
VRF : default
Local Router-ID 9.0.0.1

    Network         Nexthop         Community
---------------------------------------------
*>e 9.0.0.0/24      9.0.0.2         200:20
*>e 100.0.0.0/24    9.0.0.2         200:20
*>e 100.0.1.0/24    9.0.0.2         200:20
*>e 100.0.2.0/24    9.0.0.2         200:20
*>e 100.0.3.0/24    9.0.0.2         200:20

Total number of entries 5

Showing information for routes that belong to the 200:20 BGP community number:

switch# show bgp ipv4 unicast community 200:20
Status codes: s suppressed, d damped, h history, * valid, > best, = multipath,
              i internal, e external S Stale, R Removed
Origin codes: i - IGP, e - EGP, ? - incomplete

VRF : default
Local Router-ID 9.0.0.1

    Network            Nexthop        Metric     LocPrf     Weight Path
-----------------------------------------------------------------------
*>e 9.0.0.0/24         9.0.0.2        0          100        0      200 ?
*>e 100.0.0.0/24       9.0.0.2        0          100        0      200 ?
*>e 100.0.1.0/24       9.0.0.2        0          100        0      200 ?
*>e 100.0.2.0/24       9.0.0.2        0          100        0      200 ?
*>e 100.0.3.0/24       9.0.0.2        0          100        0      200 ?
Total number of entries 5

Showing information for routes that belong to the Internet BGP community type:

switch# show bgp ipv4 unicast community internet
Status codes: s suppressed, d damped, h history, * valid, > best, = multipath,
              i internal, e external S Stale, R Removed
Origin codes: i - IGP, e - EGP, ? - incomplete

VRF : default
Local Router-ID 9.0.0.1

    Network            Nexthop        Metric     LocPrf     Weight Path
-----------------------------------------------------------------------
*>e 9.0.0.0/24         9.0.0.2        0          100        0      200 ?
*>e 100.0.0.0/24       9.0.0.2        0          100        0      200 ?
*>e 100.0.1.0/24       9.0.0.2        0          100        0      200 ?
*>e 100.0.2.0/24       9.0.0.2        0          100        0      200 ?
*>e 100.0.3.0/24       9.0.0.2        0          100        0      200 ?
Total number of entries 5

Showing information for routes that belong to the local-as BGP community type:

switch# show bgp ipv4 unicast community local-as
Status codes: s suppressed, d damped, h history, * valid, > best, = multipath,
              i internal, e external S Stale, R Removed
Origin codes: i - IGP, e - EGP, ? - incomplete

VRF : default
Local Router-ID 9.0.0.1

    Network            Nexthop        Metric     LocPrf     Weight Path
-----------------------------------------------------------------------
*>e 9.0.0.0/24         9.0.0.2        0          100        0      200 ?
*>e 100.0.0.0/24       9.0.0.2        0          100        0      200 ?
*>e 100.0.1.0/24       9.0.0.2        0          100        0      200 ?
*>e 100.0.2.0/24       9.0.0.2        0          100        0      200 ?
*>e 100.0.3.0/24       9.0.0.2        0          100        0      200 ?
Total number of entries 5

Showing information for routes that belong to the no-advertise BGP community type:

switch# show bgp ipv4 unicast community no-advertise
Status codes: s suppressed, d damped, h history, * valid, > best, = multipath,
              i internal, e external S Stale, R Removed
Origin codes: i - IGP, e - EGP, ? - incomplete

VRF : default
Local Router-ID 9.0.0.1

    Network            Nexthop        Metric     LocPrf     Weight Path
-----------------------------------------------------------------------
*>e 9.0.0.0/24         9.0.0.2        0          100        0      200 ?
*>e 100.0.0.0/24       9.0.0.2        0          100        0      200 ?
*>e 100.0.1.0/24       9.0.0.2        0          100        0      200 ?
*>e 100.0.2.0/24       9.0.0.2        0          100        0      200 ?
*>e 100.0.3.0/24       9.0.0.2        0          100        0      200 ?
Total number of entries 5

Showing information for routes that belong to the no-export BGP community type:

switch# show bgp ipv4 unicast community no-export
Status codes: s suppressed, d damped, h history, * valid, > best, = multipath,
              i internal, e external S Stale, R Removed
Origin codes: i - IGP, e - EGP, ? - incomplete

VRF : default
Local Router-ID 9.0.0.1

    Network            Nexthop        Metric     LocPrf     Weight Path
-----------------------------------------------------------------------
*>e 9.0.0.0/24         9.0.0.2        0          100        0      200 ?
*>e 100.0.0.0/24       9.0.0.2        0          100        0      200 ?
*>e 100.0.1.0/24       9.0.0.2        0          100        0      200 ?
*>e 100.0.2.0/24       9.0.0.2        0          100        0      200 ?
*>e 100.0.3.0/24       9.0.0.2        0          100        0      200 ?
Total number of entries 5

Showing information for routes that belong to the gshut BGP community type:

switch# show bgp ipv4 unicast community gshut
Status codes: s suppressed, d damped, h history, * valid, > best, = multipath,
              i internal, e external S Stale, R Removed
Origin codes: i - IGP, e - EGP, ? - incomplete

VRF : default
Local Router-ID 1.1.1.2

    Network            Nexthop         Metric     LocPrf     Weight Path
------------------------------------------------------------------------
*>e 1.1.1.0/24         10.1.1.2        0          0          0       2 i
Total number of entries 1

switch#
switch# show bgp ipv6 unicast community gshut
Status codes: s suppressed, d damped, h history, * valid, > best, = multipath,
              i internal, e external S Stale, R Removed
Origin codes: i - IGP, e - EGP, ? - incomplete

VRF : default
Local Router-ID 1.1.1.2

    Network            Nexthop         Metric     LocPrf     Weight Path
------------------------------------------------------------------------
*>e 1::/64             10::2
                       fe80::98f2:b300:1368:e882
                                       0          0          0       2 i
Total number of entries 1