Configuring BGP Configuring BGP Community Filtering Command or Action Purpose Device> enable Step 2 configure terminal Example: Device# configure terminal Enters global configuration mode. Step 3 ip community-list community-list-number {permit | deny} community-number Example: Device(config)# ip community-list 1 permit 50000:10 Creates a community list, and assigns it a number. • The community-list-number is an integer from 1 to 99 that identifies one or more permit or deny groups of communities. • The community-number is the number that is configured by a set community route-map configuration command. Step 4 router bgp autonomous-system Example:
Device(config)# router bgp 108 Enters BGP router configuration mode. Step 5 neighbor {ip-address | peer-group name} send-community Example: Device(config-router)# neighbor 172.16.70.23 send-community Specifies that the COMMUNITIES attribute be sent to the neighbor at this IP address. Step 6 set comm-list list-num delete Example: Device(config-router)# set comm-list 500 delete (Optional) Removes communities from the community attribute of an inbound or outbound update that match a standard or extended community list that is specified by a route map. Step 7 exit Example: Device(config-router)# end Returns to global configuration mode. Step 8 ip bgp-community new-format Example:
Device(config)# ip bgp-community new format (Optional) Displays and parses BGP communities in the format AA:NN. A BGP community is displayed in a two-part format 2 bytes long. The Cisco default community format is in the format NNAA. In the most recent RFC for BGP, a community takes the form AA:NN, where the first part is Configuring BGP 27