bgp default-route-advertise with policy apply community

Created: Oct 25, 2017 06:23:10Latest reply: Mar 22, 2018 22:46:51 2637 4 0 0
  Rewarded Hi-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 0.0.0.0/0 route is received at peer x however, it does not have the local preference or the community attached to it.
  • x
  • convention:

Featured Answers
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
All Answers
WoodWood Created Oct 25, 2017 09:36:12 Helpful(0) Helpful(0)

waiting for help
  • x
  • convention:

Busy_with_lazy_mind 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 0.0.0.0/0 or just delete if-match judgement command.
  • x
  • convention:

XxIII Created Nov 7, 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:

StarOfWest 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

Reply

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

Notice: To protect 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 are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including 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."
If the attachment button is not available, update the Adobe Flash Player to the latest version!

Login and enjoy all the member benefits

Login
Fast reply Scroll to top