cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

Community Helping Community

619
Views
0
Helpful
9
Replies
Highlighted
Beginner

Unable to Set outbound BGP community

I was trying to set a route community while advertising a network in BGP in this manner.

!

route-map Loo0

match int loop0

set community 300:10

!

router bgp 300

network 6.6.6.6 mask 255.255.255.255 route-map Loo0

This however does not work. The solution is removing the match statement from the route-map mentioned away. However, I am unable to understand why this has happened . Any clues ?

9 REPLIES 9
VIP Mentor

Hello,

Hello,

if you do a 'sh ip bgp', is your advertised network 6.6.6.6/32 using loop0 as the next hop ? As far as I remember, the 'match interface' command only works when the route's next hop is the interface specified, loop0 in your case.

Beginner

I do have an update-source 

I do have an update-source  loopack0 in my neighbor statement !

VIP Mentor

Surya,

Surya,

do you want to match loop0, or loopback0 ? What is the exact syntax/spelling of the Loopback interface you use as the next hop ?

Participant

"If a match command or Match

"If a match command or Match Clause value in ASDM is not present, all routes match the clause."

http://www.cisco.com/c/en/us/td/docs/security/asa/asa84/configuration85/guide/asa_cfg_cli_85/route_maps.html

" the absence of the match commands, the entire routes or packets are matched here."

http://www.examcollection.com/certification-training/ccnp-concept-of-route-maps.html

Beginner

That is indeed correct. It

That is indeed correct. It does not answer my question though. My point being that matching the interface wouldn't have been wrong !

Enthusiast

Do you have below command in

Do you have below command in global config?

ip bgp-community new-format
Beginner

Yes , I do !

Yes , I do !

Contributor

Can you pls provide the

Can you pls provide the detailed config and "sh ip bg" & "sh ip bg 6.6.6.6/24" before and after applying this route-map?

Ashok.


With best regards...
Ashok
Cisco Employee

Hello Surya we have seen many

Hello Surya we have seen many times that the route-map with network statement does not work properly. Could you please use the route-map with the neighbor statement and see if that works.

Also, another thing that you can try is remote the match statement and just use the set community command under route-map.

Finally, can you verify if you have configured the neighbor x.x.x.x send-community command under the address-family.

Regards

Vinit

Thanks
--Vinit
CreatePlease to create content
Content for Community-Ad
FusionCharts will render here