Got it

Router filter with EBGP peer can’t work fine

Created: Apr 2, 2020 13:43:56Latest reply: Apr 2, 2020 13:47:04 276 1 0 0 0
  Rewarded HiCoins: 0 (problem resolved)

Hi all,

Our customer report the router filter with EBGP peer can’t work fine. Below is the related configuration.

[~XXX]  dis xpl route-filter name  TIWS-TATA-OUT detail

xpl route-filterTIWS-TATA-OUT

 call route-filter BOGONS

 if local-preference eq 80 then

  refuse

 elseif ip route-destination inPFX-CLARO-POR-TATA or ip route-destination in WOM then

  call route-filter SET-AS-PREPEND-TO-TATA

 else

  refuse

 endif

 end-filter

#

xpl route-filter BOGONS

 if ip route-destination in MARTIANS then

  refuse

 else

  approve

 endif

 end-filter

#

xpl route-filter SET-AS-PREPEND-TO-TATA

 if community matches-any {65100:6453} then

  refuse

 elseif community matches-any {65101:6453} then

  apply as-path 27978 1 additive

 elseif community matches-any {65102:6453} then

  apply as-path 27978 2 additive

 elseif community matches-any {65103:6453} then

  apply as-path 27978 3 additive

 else

  approve

 endif

 end-filter

#

Please help check if the configuration is correct. Thanks.

Featured Answers
Popeye_Wang
Admin Created Apr 2, 2020 13:47:04

Hello,

The attribute 'local-preference' is only valid within the AS, it can't be sent to EBGP peer, So the match condition with router-filter can't filter the routing comes from another EBGP peer.

 Please try to apply the filter with another attribute in BGP, for example: community. 

View more
  • x
  • convention:

All Answers

Hello,

The attribute 'local-preference' is only valid within the AS, it can't be sent to EBGP peer, So the match condition with router-filter can't filter the routing comes from another EBGP peer.

 Please try to apply the filter with another attribute in BGP, for example: community. 

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.