Got it

bgp default-route-advertise with policy apply community

Created: Oct 24, 2017 22:23:10Latest reply: Mar 22, 2018 14:46:51 3493 4 0 0 0
  Rewarded HiCoins: 0 (problem resolved)
This post was last edited by xxiii at 2017-10-24 22: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.

Featured Answers

Recommended answer

StarOfWest
Created Mar 22, 2018 14:46:51

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

All Answers
waiting for help
View more
  • x
  • convention:

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.
View more
  • x
  • convention:

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.
View more
  • x
  • convention:

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

Comment

You need to log in to comment to the post Login | Register
Comment

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 " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.