cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2849
Views
5
Helpful
2
Replies

Use route-map with tagging in BGP

Gergely Racz
Level 1
Level 1

Hello Everyone,

 

On a Cisco ASR1001 device I cannot attach a route-map (with match tag) to a BGP neighbor. I know in most IOS releases we cannot use tags with BGP, and communities should be used instead. But it would be much easier to find an IOS release which supports tagging. The question is whether such an ASR IOS exists where I could use tagging.

 

My current IOS: System image file is "bootflash:/asr1001x-universalk9.16.12.05.SPA.bin

 

 

 

Config is the following:

 

asr1001(config)#router bgp 10
asr1001(config-router)# neighbor 1.1.1.1 route-map RM_TAG out
% "RM_TAG" used as BGP outbound route-map, tag match not supported
% not supported match will behave as route-map with no match


route-map RM_TAG deny 5 
 match tag 300
!
route-map RM_TAG permit 10
match ip address prefix-list PL_XY
set metric 200
!
route-map RM_TAG deny 20

 

 

Thanks in advance,

Gergely Racz

 

 

1 Accepted Solution

Accepted Solutions

Harold Ritter
Cisco Employee
Cisco Employee

Hi @Gergely Racz ,

 

This restriction has been there since day 1 and is still there in the latest IOS or IOS-XE versions. There are ways to handle this though. You can generate a community based on the tag, when you originate the route in BGP (either using a redistribute or network statement) and match on that community in the outbound route-map.

 

Regards,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

View solution in original post

2 Replies 2

follow

Harold Ritter
Cisco Employee
Cisco Employee

Hi @Gergely Racz ,

 

This restriction has been there since day 1 and is still there in the latest IOS or IOS-XE versions. There are ways to handle this though. You can generate a community based on the tag, when you originate the route in BGP (either using a redistribute or network statement) and match on that community in the outbound route-map.

 

Regards,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México
Review Cisco Networking for a $25 gift card