cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3160
Views
5
Helpful
4
Replies

using the BGP community string

bgibson
Level 1
Level 1

I am trying to determine what I am doing wrong when trying to set a community for BGP routes originating from my head router.

Here is the config info

network 192.168.252.0 route-map SetCommunity

route-map SetCommunity permit 10

match ip address prefix-list Filter_Remote

!

route-map SetCommunity permit 20

set community 0:19 65002:19

!

route-map SetCommunity permit 30

ip prefix-list Filter_Remote seq 10 deny 172.29.10.0/24

ip prefix-list Filter_Remote seq 20 permit 0.0.0.0/0 le 32

When I do a sh ip bgp 192.168.252.0 on a remote router I don't see the community tag.

sho ip bgp 192.168.252.0

BGP routing table entry for 192.168.252.0/24, version 103

Paths: (1 available, best #1, table Default-IP-Routing-Table)

Not advertised to any peer

13979 65002

172.26.185.1 from 172.26.185.1 (12.123.67.17)

Origin IGP, localpref 100, valid, external, best

Any ideas?

4 Replies 4

Edison Ortiz
Hall of Fame
Hall of Fame

You need the

neighbor [neighbor ip] send-community

command under the BGP process.

jstrine
Level 1
Level 1

I believe you want your set community statement under the route-map SetCommunity permit 10 entry (since right now line 10 isn't setting anything and line 20 isn't matching anything).

route-map SetCommunity permit 10

match ip address prefix-list Filter_Remote

set community 0:19 65002:19

!

route-map SetCommunity permit 30

Thanks. Silly error on my part. Much appreciated.

mohammedmahmoud
Level 11
Level 11

Hi,

Communities are not sent by default, you'll need

"neighbor send-community".

[edit] and i also agree with Jonathan on his suggestion.

HTH,

Mohammed Mahmoud.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card