Skip to content

Latest commit

 

History

History
60 lines (41 loc) · 3.09 KB

dl-prepend.md

File metadata and controls

60 lines (41 loc) · 3.09 KB
copyright lastupdated keywords subcollection
years
2022
2022-09-21
direct link
dl

{{site.data.keyword.attribute-definition-list}}

Prepending an AS path to influence route priority

{: #prepend-as-paths}

In the situation where the same route prefixes are being advertised to IBM Cloud through the BGP session for Direct Link, you can prepend one or more Autonomous System Numbers (ASNs) to the route advertisement. AS prepend makes the AS path longer, and therefore, the route for the prefix is less preferred by the BGP protocol on the IBM Cloud router. If the duplicate route prefixes are received with the same AS path length from different origin routers, IBM Cloud gives preference to the oldest route received. In other words, the first BGP session that advertises a given route prefix receives path preference.  {: shortdesc}

You can create AS prepends and manage your AS prepend configurations after direct link provisioning. You can also view prepended prefixes of other direct links.

Before you begin

{: #prepends-before-you-begin}

  • You must have two competing routes of equal priority before an AS prepend will take effect.
  • Make sure to review known limitations.

Prepending an AS path by using the UI

{: #prepend-as-path-ui} {: ui}

To prepend an AS path by using the UI, follow these steps:

  1. From your browser, open the {{site.data.keyword.cloud_notm}} console{: external} and log in to your account.

  2. Select the Menu icon Menu icon from the upper left, then click Interconnectivity > Direct Link.

  3. In the Direct Link table, click the Direct Link name of the gateway where you want to manage route priority.

  4. On the Details page, click the BGP tab and scroll to the AS prepends section. Then, click Go to AS prepends.

    Alternatively, you can use the AS prepends shortcut on the Overview tab. {: tip}

  5. From the AS prepends page, click Create to create an AS prepend, or use the Actions Actions menu menu to Edit or Delete an existing AS prepend.

    1. Select Prepend to all prefixes if you want the specified prepend added to all prefixes.

    2. Enter the target prefixes to prepend with the BGP ASN. When you specify a comma after the prefix, a tag shows in the field.

    3. Choose a policy:

      • Import - Use to apply to routes from an on-prem network.
      • Export - Use to apply to routes to an on-prem network.
    4. Specify how many times that you want to repeat the AS number added to the beginning of the path.

    5. Click Add to list.

  6. When you are done adding AS prepends, click Save.

Related links

{: #prepending-related-links}