BGP advertise issue

Unanswered Question
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (3 ratings)
royalblues Sun, 04/01/2007 - 05:53

i dont whether i understood your question properly..

If you want to set the tag for all the incoming routes you can use a route-map for the routes received from the BGP peer

access-list 1 permit

access-list 1 permit

access-list 1 permit

route-map SetTag permit 10

match ip address 1

set tag

router bgp 100

neighbor remote-as 200

neighbor route-map SetTag in

HTH, rate if it does


Harold Ritter Sun, 04/01/2007 - 09:20


You can't use tags with BGP. In most IOS releases, you would get the following message if you try to configure a route-map that sets the tag for a BGP session:

RouterA(config-router)#nei route-map test in

% "test" used as BGP inbound route-map, set tag not supported

RouterA(config-router)#nei route-map test out

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

RouterA(config-router)#do sh route-ma test

route-map test, permit, sequence 10

Match clauses:

Set clauses:

tag 999

Policy routing matches: 0 packets, 0 bytes

You would rather use the community attribute instead.

Hope this helps,

Harold Ritter Sun, 04/01/2007 - 11:52

From what I understand of your setup, you could just set a higher local preference when based on the received community.

Also, to ensure attached community attributes are sent peer, make sure the peer is configured with the "neighbor send-community" command.

Hope this helps,

Harold Ritter Sun, 04/01/2007 - 16:33

OK, you have to tell us a bit more about the problem you are trying to solve.

Do you receive all three mentioned prefixes from both peers?

Do you run iBGP between your two routers?

Do you redistributed in the IGP?


Hi, Hritter:

we established private bgp with a customer, and they advertise several routes to us from two sites.

customer from site A sends with community 65501:10, but no community with route and

also they have site B send all those routes as well with no community attached.

but customer could send with community from site A or site B dymanically.

No from Both sites.

our site C is connected with customer site A

site D is connected with customer site B

when I see with community attached, I want to force the traffic back on all customer routes where they sent.


Harold Ritter Mon, 04/02/2007 - 16:35

The best thing would be to ask your customer to set the community attribute for all prefixes on the site where they want traffic to come back.

Hope this helps,


This Discussion