Got it

AS-Prepend, AS-Expand

Created: Mar 10, 2020 14:48:11Latest reply: Mar 12, 2020 06:08:19 165 3 0 0
  Rewarded HiCoins: 0 (problem resolved)

Hello,


I would like to know if S6730 has the resource of AS-Prepend or AS-Expand.


The aim is to advertise a route with the correct ASN like this (PE-B is a Huawei S6730):


AS-Prepend


In this example, PE-A generates 192.168.64.0/20 prefix (that belongs to AS200) and advertise it via iBGP (the BGP session runs between AS300).


Then PE-B advertises it like AS300 + AS200 prepend.



  • x
  • convention:

Featured Answers

Best answer

Recommended answer

chenhui
Admin Created Mar 11, 2020 00:55:41 Helpful(0) Helpful(0)

Hi @ptomasi,
Yes, you can configure the route policy to do that, kindly refer to the example below:

acl 2001
 rule 5 per sourc 192.168.64.0 0.0.15.255
route-policy 2EBGP per node 10
 if-match acl 2001
 apply as-path 200 additive
bgp 300
 peer x.x.x.x route-policy 2EBGP exp

If you have any further questions, kindly let us know.

View more
  • x
  • convention:

All Answers
chenhui
chenhui Admin Created Mar 11, 2020 00:55:41 Helpful(0) Helpful(0)

Hi @ptomasi,
Yes, you can configure the route policy to do that, kindly refer to the example below:

acl 2001
 rule 5 per sourc 192.168.64.0 0.0.15.255
route-policy 2EBGP per node 10
 if-match acl 2001
 apply as-path 200 additive
bgp 300
 peer x.x.x.x route-policy 2EBGP exp

If you have any further questions, kindly let us know.

View more
  • x
  • convention:

ptomasi
ptomasi Created Mar 11, 2020 13:41:48 Helpful(0) Helpful(0)

Thank you very much, @chenhui


I've made the Lab on eNSP:


BGP Prepend Lab

It worked exactly as you said:


Display BGP



From R4 (AS 800) perspective the AS-Path to 192.168.64.0/20 prefix is 700,300,200.


i_f48.gif


View more
  • x
  • convention:

chenhui
chenhui Admin Created Mar 12, 2020 06:08:19 Helpful(0) Helpful(0)

Posted by ptomasi at 2020-03-11 13:41 Thank you very much, @chenhuiI've made the Lab on eNSP:It worked exactly as you said:From R4 (AS 800 ...
My pleasure. :D
View more
  • x
  • convention:

Comment

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

Notice 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!

My Followers

Login and enjoy all the member benefits

Login

Huawei Enterprise Support Community
Huawei Enterprise Support Community