deny (bgp-community-list)

Creates and configures a deny community (expanded or standard) rule

Supported in the following platforms:

  • Wireless Controllers — RFS 4000

  • Service Platforms — NX 95XX, NX 96XX

Syntax

deny community [expanded|standard]
deny community expanded <LINE>
deny community standard [AA:NN|internet|local-AS|no-advertise|no-export]

Parameters

deny community expanded <LINE>
deny community expanded <LINE>
Configures a deny expanded community list entry and associates it with a regular expression to match. The regular expression represents the patterns to match in the community attributes.
  • <LINE> – Provide the regular expression.
deny community standard [AA:NN|internet|local-AS|no-advertise|no-export]
deny community standard [AA:NN|internet| local-AS|no-advertise| no-export] Configures a deny standard community list entry and associates it with a predefined, globally used, known community or community number. The options are:
  • aa:nn - Configures the community number. The first part (aa) represents the AS number. The second part (nn) represents a 2-byte number.
  • internet – Advertises this route to the internet community
  • local-AS – Prevents transmission of this route outside the local AS
  • no-advertise – Prevents advertisement of this route to any peer (internal or external
  • no-export – Prevents advertisement of this route to external BGP peers (keeping this route within an AS)
   

Examples

nx9500-6C8809(config-bgp-community-list-test)#deny community expanded 100
nx9500-6C8809(config-bgp-community-list-test)#show context
bgp community-list test
 deny community expanded 100
nx9500-6C8809(config-bgp-community-list-test)#

Related Commands

no (bgp-community-list) Removes the specified deny community rule from this BGP community list