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

Attention: The Community will be in read-only mode on 12/14/2017 from 12:00 am pacific to 11:30 am.

During this time you will only be able to see content. Other interactions such as posting, replying to questions, or marking content as helpful will be disabled for few hours.

We apologize for the inconvenience while we perform important updates to the Community.

New Member

Tags in BGP


Let's say i have 4 routers connected. /24 and is on Router # 1 which when i advertise to Router # 2, I only want Router # 2 to advertise to Router # 3 and the rest of the networks which it learns from Router #1 sends it to other Routers or to different neighbors. My main goal is to filter the networks so it doesn't get injected into other neighbors and only sends to particular neighbors by using access-list on tags

One way of doing it is if on Router # 1, i create a

route-map set_tagging permit

set tag 5

R# 1

router bgp xxx

network mask route-map set_ tagging

Now, on Router # 2 when it learns about, depending on the access-list it forwards only to particular neighbor.

Is there any other way of filtering networks coming in without using the route-map tagging on network...Any idea, not sure if i am clear on this one or not.




Re: Tags in BGP

yes you can filter the network using the Prefix list, as-path accesslist, distribute list... etc...

using prefix list you can allow and deny perticular prefix from advertise to other peer or to receive the update from other peer...

but using AS-Path access-list you can allow or deny to receive route from perticular AS...



Re: Tags in BGP

go to this link:

it will clear your all the issue...



Cisco Employee

Re: Tags in BGP


BGP can carry community attributes that would allow you to do the same thing other routing protocols would do using tags. BGP doesn't carry tags in its updates.

You could attach a given community to a routing update on one router and filter based on that same community on another router.

Hope this helps,

Harold Ritter
Sr. Technical Leader
CCIE 4168 (R&S, SP)
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
CreatePlease to create content