bgp default-route-advertise with policy apply community

Created Oct 25, 2017 06:23:10Latest reply Mar 22, 2018 22:46:51 2397 4 0 0
  Rewarded E Coins: 0 (problem resolved)
This post was last edited by xxiii at 2017-10-25 06:25. In BGP, I need to attach a community and a local preference to the route advertised by the default-route-advertise command. However, it appears that apply commands in the policy are ignored in this case, is this correct?

peer x default-route-advertise route-policy xpol

route-policy ibgp.ipv4-orig-dflt permit node 30000
  description do we have DIRECT connectivity to the inet?
  if-match ip-prefix tran
  apply local-preference 10
  apply community 65000:1

When the route is received at peer x however, it does not have the local preference or the community attached to it.
  • x
  • convention:

StarOfWest  Moderator   Created Mar 22, 2018 22:46:51 Helpful(0) Helpful(0)

In your example the route-policy configured and the route policy which was applied is different, so definitely it will not work.
  • x
  • convention:

“We only get answers to the questions that we ask.” physicist Werner Heisenberg
WoodWood  Admin   Created Oct 25, 2017 09:36:12 Helpful(0) Helpful(0)

waiting for help
  • x
  • convention:

Best answer

Busy_with_lazy_mind  Moderator   Created Oct 27, 2017 09:18:00 Helpful(0) Helpful(0)

what's the ip prefix tran.
"if-match ip-prefix tran" is a rule check , if match this, the actions below would be executed.
you can try to modify the ip-prefix tran to or just delete if-match judgement command.
  • x
  • convention:

Best answer

XxIII     Created Nov 07, 2017 00:05:53 Helpful(0) Helpful(0)

Well, that's what seems like should happen, but in actual practice, it is originating a default but without a local preference of 10, or community 65000:1.

tran is an ip-prefix list of some IP addresses, at least one of which should be present, before this router orginiates a default to the peer in question.
  • x
  • convention:


You need to log in to reply to the post Login | Register

Notice:To ensure the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but not limited to politically sensitive content, content concerning pornography, gambling, drug abuse and trafficking, content that may disclose or infringe upon others' intellectual properties, including commercial secrets, trade marks, copyrights, and patents, and personal privacy. Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see“ Privacy Policy.”
If the attachment button is not available, update the Adobe Flash Player to the latest version!
Fast reply Scroll to top