I was trying to set a route community while advertising a network in BGP in this manner.
match int loop0
set community 300:10
router bgp 300
network 18.104.22.168 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 ?
if you do a 'sh ip bgp', is your advertised network 22.214.171.124/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.
do you want to match loop0, or loopback0 ? What is the exact syntax/spelling of the Loopback interface you use as the next hop ?
"If a match command or Match Clause value in ASDM is not present, all routes match the clause."
" the absence of the match commands, the entire routes or packets are matched here."
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.