show bgp extcommunity

To display Border Gateway Protocol (BGP) routes that match an extended community, use the show bgp extcommunity command.

show bgp {{ ip | ipv4 } { unicast | multicast } } extcommunity 4byteas-generic { non-transitive | transitive } [ as4-number ] [ exact-match ] [ vrf vrf-name ]

Syntax Description

ip
Displays BGP information for the IPv4 address family.
ipv4
Displays BGP information for the IPv4 address family.
unicast
Displays BGP information for the unicast address family.
multicast
Displays BGP information for the multicast address family.
4byteas-generic
Displays the routes that match the generic specifice extended communities.
non-transitive
Displays the routes that match the nontransitive extended communities.
transitive
Displays the routes that match the transitive extended communities.
as4-number
AS number. The as4-number is a 32-bit integer in the form of a plaintext integer or <higher 16-bit decimal number>.<lower 16-bit decimal number> .
exact-match
(Optional) Displays an exact match of the extended community.
vrf vrf-name
(Optional) Specifies the virtual routing and forwarding (VRF) context name. The name can be any case-sensitive, alphanumeric string up to 32 characters.

Command Default

None

Command Modes

Any command mode

Command History

Release
Modification
5.0(3)N1(1)
This command was introduced.

Usage Guidelines

This command requires the LAN Enterprise Services license.

Examples

This example shows how to display the routes that match an extended community:

switch(config)# show bgp ip unicast extcommunity 4byteas-generic transitive 1.3:30
 

Related Commands

Command
Description
ip extcommunity-list
Creates an extended community list.