Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

route tagging on BGP

Hello,

 

I have following problem. I want to tag a route on a CE router and advertise it into the MPLS.

 

router A (CE-A): subnet 10.12.10.0/24

 

 

CE-A   ------ PE-A ------- MPLS --------PE-B-------CE-B------

 

I want to tag the routes on router CE-A with tag500 and want to receive the tag on router CE-B with that tag in order to redistribute them based on the Tag 500.

I have tried following:

 

 

route-map Tag500 permit 10
 set tag 500

 

network 10.12.10.0 mask 255.255.255.0 route-map Tag500

and

 

neighbor 10.192.96.9 route-map Tag500 out

 

on the second command i am receiving:

% "Tag500" used as BGP outbound route-map, set tag not supported

 

on the router CE-B i am receiving only Tag XXXX (replaced real EBGP neighbor AS with XXXX). YYYY is own AS.

 

CE-B#show ip route 10.12.10.254
Routing entry for 10.12.10.0/24
  Known via "bgp YYYY", distance 20, metric 0
  Tag XXXX, type external
  Last update from 10.192.96.61 04:34:47 ago
  Routing Descriptor Blocks:
  * 10.192.96.61, from 10.192.96.61, 04:34:47 ago
      Route metric is 0, traffic share count is 1
      AS Hops 4
      Route tag XXXX

 

I would like to see something like:

 

CE-B#show ip route 10.12.10.254
Routing entry for 10.12.10.0/24
  Known via "bgp YYYY", distance 20, metric 0
  Tag 500, type external
  Last update from 10.192.96.61 04:34:47 ago
  Routing Descriptor Blocks:
  * 10.192.96.61, from 10.192.96.61, 04:34:47 ago
      Route metric is 0, traffic share count is 1
      AS Hops 4
      Route tag 500

 

 

How can i make this happen ?

Can i do this with communities ? If yes, could someone please explain how ?

 

Kind Regards,

Oliver

1 REPLY

Do you have control of the

Do you have control of the other side? If not, you'll  have to work with the isp to make sure they treat your community the way that you want. You'll also need to make sure they support them. Other than that, you can set communities outbound in the route map, and you'll need to configure your neighbor to send the communities:

 

route-map Community permit 20

set community 123:1234 (usually ASN:Number)

 

router bgp 1

neighbor 1.1.1.1 send-community both

neighbor 1.1.1.1 route-map Community out

 

When they receive it, they'll need to match on the community instead of the tag...

HTH,

John

HTH, John *** Please rate all useful posts ***
464
Views
0
Helpful
1
Replies