09-05-2016 01:43 AM - edited 03-05-2019 04:38 AM
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 ?
09-05-2016 09:53 AM
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.
09-13-2016 07:14 AM
I do have an update-source loopack0 in my neighbor statement !
09-13-2016 07:29 AM
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 ?
09-05-2016 06:06 PM
"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
09-13-2016 07:14 AM
That is indeed correct. It does not answer my question though. My point being that matching the interface wouldn't have been wrong !
09-05-2016 11:19 PM
Do you have below command in global config?
ip bgp-community new-format
09-13-2016 07:13 AM
Yes , I do !
09-06-2016 03:06 AM
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.
09-13-2016 07:21 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide