show ip bgp community exact-match

To display routes that matches a specific Border Gateway Protocol (BGP) community, use the show ip bgp community exact-match command.

show ip bgp community community-number exact-match [ vrf { all | vrf-name }]

Syntax Description

community-number
Community number. Valid value is a community number in the range from 1 to 4294967200, or AA : NN (autonomous system-community number/2-byte number).
exact-match
Displays only routes that have exactly the same specified communities.
all
(Optional) Specifies the reserved all VRF.
vrf vrf-name
(Optional) Specifies the virtual routing and forwarding (VRF) instance. 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 have exactly the same specified BGP communities:

switch# show ip bgp community 201 exact-match
 

Related Commands

Command
Description
set community
Sets the attributes for BGP communities.
show ip bgp community
Displays the BGP routes that match a community list.
show ip bgp community-list
Displays BGP routes that are permitted by the BGP community list.