> ## Documentation Index
> Fetch the complete documentation index at: https://docs.megaport.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Creating MCR Connections to IBM Cloud Direct Link

> This help topic describes how to create connections between MCR and IBM Cloud Direct Link.

export const Video = ({url, text, duration, description}) => {
  const errorPrefix = '\x1b[31;1;4mERROR\x1b[0m: Video -';
  if (typeof url !== 'string') {
    url = String(url);
  }
  if (typeof text !== 'string') {
    text = String(text);
  }
  if (!url || url === 'undefined') {
    console.error(`${errorPrefix} the \`url\` property is required — rendering an empty string instead`);
    return <></>;
  }
  if (!text || text === 'undefined') {
    console.error(`${errorPrefix} the \`text\` property is required — rendering an empty string instead`);
    return <></>;
  }
  const youtubeIconMask = "url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath d='M549.7 124.1c-6.3-23.7-24.8-42.3-48.3-48.6C458.8 64 288 64 288 64S117.2 64 74.6 75.5c-23.5 6.3-42 24.9-48.3 48.6-11.4 42.9-11.4 132.3-11.4 132.3s0 89.4 11.4 132.3c6.3 23.7 24.8 41.5 48.3 47.8C117.2 448 288 448 288 448s170.8 0 213.4-11.5c23.5-6.3 42-24.2 48.3-47.8 11.4-42.9 11.4-132.3 11.4-132.3s0-89.4-11.4-132.3zM232 336V176l142.7 80z'/%3E%3C/svg%3E\")";
  return <div className="video-callout">
      <div className="callout my-4 flex gap-3 overflow-hidden rounded-2xl border px-5 py-4">
        <div className="mt-0.5 w-4 shrink-0" data-component-part="callout-icon">
          <svg aria-hidden="true" className="size-4 shrink-0" style={{
    WebkitMaskImage: youtubeIconMask,
    maskImage: youtubeIconMask,
    WebkitMaskRepeat: 'no-repeat',
    maskRepeat: 'no-repeat',
    WebkitMaskPosition: 'center',
    maskPosition: 'center',
    backgroundColor: '#0284c7'
  }} />
        </div>
        <div className="min-w-0 w-full text-sm" data-component-part="callout-content">
          <strong>
            Video:{' '}
            <a href={url} target="_blank" rel="noopener noreferrer">
              {text}
              <span className="sr-only"> (opens in a new tab)</span>
            </a>
          </strong>
          {}
          {duration && <> ({duration})</>}
          {}
          {description && <p className="mt-1 mb-0 text-xs text-gray-500 dark:text-gray-400">
              {description}
            </p>}
        </div>
      </div>
    </div>;
};

export const Image = ({src, alt = '', caption, width, height, shadow}) => {
  const errorPrefix = '\x1b[31;1;4mERROR\x1b[0m: Image -';
  if (typeof src !== 'string') {
    src = String(src);
  }
  if (!src || src === 'undefined') {
    console.error(`${errorPrefix} \`src\` is required — rendering an empty string instead`);
    return <></>;
  }
  const img = <img className={['mega-image-style', shadow ? 'shadow' : ''].join(' ')} src={src} alt={alt} width={width} height={height} style={{
    display: 'block'
  }} />;
  return caption ? <figure>
      {img}
      <figcaption style={{
    textAlign: 'center',
    width
  }}>{caption}</figcaption>
    </figure> : img;
};

export const Link = ({href, children}) => {
  const errorPrefix = '\x1b[31;1;4mERROR\x1b[0m: Link -';
  if (typeof href !== 'string') {
    href = String(href);
  }
  if (!href || href === 'undefined') {
    console.error(`${errorPrefix} the \`href\` property is required — rendering an empty string instead`);
    return <></>;
  }
  if (href.includes('{') || href.toUpperCase().includes('%7B')) {
    console.error(`${errorPrefix} could not resolve a variable in href "${href}" — rendering an empty string instead`);
    return <></>;
  }
  const isExternal = (/^https?:\/\//).test(href);
  return <a href={href} className="link" target={isExternal ? '_blank' : undefined} rel={isExternal ? 'noreferrer' : undefined}>
      {children ?? href}
      {isExternal && <span className="sr-only"> (opens in a new tab)</span>}
    </a>;
};

IBM Direct Link lets you seamlessly create private connections between your on-premises and cloud resources. Direct Link Connect with Megaport extends your organization's data center network and to public clouds to offer better performance, higher throughput, and security to IBM Cloud environments.

When connecting to IBM through a Direct Link Connect with Megaport, the Virtual Cross Connect (VXC) forms the Layer 2 component of the connection. Layer 3 BGP connectivity is established directly between the customer and IBM Cloud.

This topic describes how to connect to IBM Direct Link from an MCR. For more information about connecting from a Port, see [Connecting to IBM Cloud Direct Link](/cloud/megaport/ibm/direct-link-2.0).

<Video url="https://www.youtube.com/watch?v=FK8ZDjlZsSM" text="Private Connectivity to IBM Cloud" description="This video shows how to set up private connectivity to IBM Cloud using IBM Direct Link, through the Megaport Portal and the IBM Cloud Management Console." />

<Callout icon="triangle-exclamation" color="red">
  If you edit an older VXC to IBM Cloud Direct Link in the Megaport Portal, a prompt appears stating that Megaport has updated API integrations, and advises you to cancel and reorder the VXC. In this situation, we recommend that you cancel and then reorder the VXC using the latest API integration.
</Callout>

## Benefits of IBM Direct Link through Megaport

The benefits of creating an IBM Direct Link through Megaport include:

* Reduced latency and increased availability
* Reduced data egress cost
* Secure connectivity

## Creating a connection to IBM Direct Link

To set up IBM Direct Link with Megaport, you need to create a VXC from your MCR in the Megaport Portal to the IBM Direct Link cloud location.

Design considerations when setting up your Direct Link to IBM Cloud:

* **Redundancy** -- Megaport supports redundant connections. In each of the Direct Link peering locations, Megaport has established two diverse Direct Links with IBM Cloud. In the <Link href="https://portal.megaport.com">Megaport Portal</Link>, the Ports are noted as Port 1 and Port 2. A redundant configuration requires two or more VXCs.

* **Local and Global routing options** -- The Local Routing option provides access to data centers with the same three-letter prefix as the Point of Presence (such as DAL, AMS, and MEL). The Global Routing option is required as an add-on to reach data centers outside of those locations. For more information about local and global routing options, see the [IBM cloud documentation](https://cloud.ibm.com/docs/direct-link).

* **Port speed** -- Port speed options for IBM Direct Link Connect are 50 Mbps, 100 Mbps, 200 Mbps, 500 Mbps, 1 Gbps, 2 Gbps, or 5 Gbps. Higher speeds might be available depending on region and IBM capabilities. For pricing details from IBM, see [Pricing for IBM Cloud Direct Link](https://cloud.ibm.com/docs/dl?topic=dl-faqs).

* Megaport-enabled Direct Link locations:
  * North America: Ashburn, Chicago, Dallas, San Jose
  * Europe: Amsterdam, Frankfurt, London, Paris
  * Australia: Sydney
  * Asia: Osaka, Tokyo

**To create a VXC to the IBM Direct Link Connect**

1. In the <Link href="https://portal.megaport.com">Megaport Portal</Link>, go to the **Services** page and select the MCR you want to use.\
   If you haven't already created an MCR, see [Creating an MCR](/mcr/creating-mcr).

2. Add an IBM Cloud connection for the MCR.\
   If this is the first connection for the MCR, click the IBM Cloud tile. The tile is a shortcut to the configuration page. Alternatively, click **+Connection**, click **Cloud**, then click **IBM Cloud**.

   <Image src="/images/cloud/mcr/ibm-dlc2-mcr-add-connection.png" alt="Add connection" shadow={true} width={700} />

3. Select the IBM Direct Link location where the peer will be set up with IBM Cloud and click **Next**.\
   This destination should match the peer location selected in the IBM Cloud.
   <Image src="/images/cloud/mcr/ibm-dlc2-mcr-select-port.png" alt="Select IBM Direct Link location" shadow={true} width={700} />

4. Specify the connection details:

   * **Connection Name** -- The name of your VXC to be shown in the <Link href="https://portal.megaport.com">Megaport Portal</Link>.

   * **Service Level Reference** (optional) -- Specify a unique identifying number for your Megaport service to be used for billing purposes, such as a cost center number, unique customer ID, or purchase order number. The service level reference number appears for each service under the Product section of the invoice. You can also edit this field for an existing service.

   * **Rate Limit** -- The speed of your connection in Mbps. The speed tiers available are dependent on the selected location, and match the speeds available in IBM. Select the port speed from the drop-down list to match the selected speed in the IBM Cloud portal for the Direct Link service.

   * **VXC State** -- Select **Enabled** or **Shut Down** to define the initial state of the connection. For more information, see [Shutting Down a VXC for Failover Testing](/connections/shut-down-vxc).

     <Note>
       If you select **Shut Down**, traffic will not flow through this service and it will behave as if it was down on the Megaport network. Billing for this service will remain active and you will still be charged for this connection.
     </Note>

   * **Minimum Term** -- Select No Minimum Term, 12 Months, 24 Months, 36 Months, 48 Months, or 60 Months. Longer terms result in a lower monthly rate. *12 Months* is selected by default. Take note of the information on the screen to avoid early termination fees (ETF).

     Enable the [Minimum Term Renewal](/portal-admin/auto-renew/#auto-renew) option for services with a 12, 24, 36, 48 or 60-month term to automatically renew the contract at the same discounted price and term length at the end of the contract. If you don't renew the contract, at the end of the term,  the contract will automatically roll over to month-to-month contract for the following billing period, at the same price, without term discounts.

     For more information, see [VXC Pricing and Contract Terms](/finance/vxc-pricing) and [VXC, Megaport Internet, and IX Billing](/finance/billing-details).

   * **Resource Tags** -- You can use resource tags to add your own reference metadata to a Megaport service.\
     To add a tag:

     1. Click **Add Tags**.
     2. Click  **Add New Tag**.
     3. Enter details into the fields:
        * **Key** -- String, maximum length 128 characters. Valid values are a-z 0-9 \_ : . / \ -
        * **Value** -- String, maximum length 256 characters. Valid values are a-z A-Z 0-9 \_ : . @ / + \ - (space)
     4. Click **Save**.

        If you already have resource tags for that service, you can manage them by clicking **Manage Tags**.

     <Warning>
       Never include sensitive information in a resource tag. Sensitive information includes commands that return existing tag definitions and information that will identify a person or company.
     </Warning>

     <Image src="/images/cloud/mcr/mcr-cloud-create-details.png" alt="Connection details" shadow={true} width={550} />

5. Click **Next**.\
   The MCR A-End page appears. This page confirms that the MCR connection configuration will be generated automatically, and can be modified later.

<Image src="/images/cloud/mcr/ibm-dlc2-mcr-connection-details-confirm.png" alt="MCR A-End page" shadow={true} width={500} />

1. Click **Next**.\
   The Cloud Details page appears.

2. Specify these IBM cloud details:

   * **IBM Account ID** -- Your IBM account ID. You can get your account ID from the IBM account setting in the IBM Cloud portal.\
     This is used to link the Megaport Portal and IBM Cloud portal. Confirmation for this new connection will be sent to the specified account ID in the IBM Cloud portal.

   * **Customer IP Address** (optional) -- The IP address space (in CIDR format) you will use on your network for peering. For private connections, this field is optional and if left blank, Megaport assigns a private /30 address. For public connections, this field is required and needs public IPs (/30) allocated by you for BGP connectivity. You must own the public IPs.

   * **Provider IP Address** (optional) -- The IP address space in CIDR format assigned in the IBM network for peering. If left blank, Megaport automatically assigns a private /30 address.

     <Image src="/images/cloud/mcr/ibm-dlc2-cloud-details.png" alt="VLAN details" shadow={true} width={450} />

3. Click **Next**.\
   A summary page appears with drop-downs containing the MCR A-End and IBM cloud details, and the monthly cost.
   <Image src="/images/cloud/mcr/ibm-dlc2-mcr-add-vxc.png" alt="Summary" shadow={true} width={450} />

4. Click **Back** to make changes or click **Add VXC**.\
   Once you have finished this configuration, you can configure additional VXCs or complete the order.

5. Click **Review Order** to proceed through the checkout process, or click **Save** to save the configured services before placing the order.

6. Review the Important Information section and confirm agreement with the Service Agreements.

   If you do not have a promotion code, skip to the **Order Now** step. If you do have a promotion code, enter it into the **Enter discount code** field then click **Apply**. Alternatively, if a code already appears in the **Discounts** field, verify it is correct and click **Apply**.

   The promotional discount appears below the Standard Term discount.  This discount is not reflected in the Monthly Rate shown here, it is applied at the time of billing.  If an invalid or expired code causes an error with your order, contact your Megaport Account Manager for a replacement code.

   <Image src="/images/snippets/add-promo-code.png" alt="Add Promo Code" shadow={true} width={750} />

   If you entered an incorrect promotion code, you can remove it by clicking **Remove**.

   <Note>
     In addition to entering a promotion code manually, there are two other ways to apply promotion codes.

     * **Auto-apply** -- Megaport automatically applies the promotion code to your order. It appears automatically on the Checkout page.
     * **Manual list** -- Eligible promotion codes appear at checkout for any applicable services in your cart. You can then select and apply them.
   </Note>

7. Click **Order Now**.

The IBM Portal Connection prompt displays. This is a reminder that you need to approve or reject the request in the IBM Cloud portal, and provides a link to the IBM Cloud portal.

<Image src="/images/cloud/ibm-dlc2-order-prompt.png" alt="IBM Portal Connection Prompt" shadow={true} width={300} />

Once the VXC is created and ordered in the Megaport Portal, the change is available immediately in the IBM Cloud portal. After you verify and approve the inbound IBM VXC in the IBM Cloud portal, the IBM Direct Link Connect status changes to Provisioned and the Megaport VXC is active.

<Note>
  * When editing a VXC in the Megaport Portal, a prompt listing the changes appears first, then the IBM Portal Connection prompt. If editing an older VXC to IBM Cloud Direct Link, a prompt appears stating that Megaport has updated API integrations, and advises you to cancel and reorder the VXC. In this situation, we recommend that you cancel and then reorder the VXC using the latest API integration.
  * When terminating a VXC in the Megaport Portal, confirm the termination in the prompt that appears. The IBM Portal Connection prompt appears to remind you to cancel the service in the IBM Cloud portal also. The VXC is terminated on the Megaport side, but you must do the same in the IBM Cloud portal to fully terminate the service.
</Note>

**To verify the BGP configuration**

1. In the <Link href="https://portal.megaport.com">Megaport Portal</Link>, select the VXC.
2. Click the gear icon next to the VXC.
   <Image src="/images/cloud/mcr/ibm-dlc2-mcr-ibm-approval.png" alt="VXC Details" shadow={true} width={650} />
3. On the Connection Details page, click **Details**.\
   The Configuration Details page appears.
   <Image src="/images/cloud/mcr/ibm-dlc2-mcr-active-service.png" alt="Service Status" shadow={true} width={300} />
   The Service Status indicator displayed in green means that the service is active.
4. Click **Logs**.\
   The Service Log page appears.
   <Image src="/images/cloud/mcr/ibm-dlc2-mcr-service-up.png" alt="Service Log page" shadow={true} width={800} />
   A green check mark indicates that the BGP session is working as expected.

## Using a service key

You can create a service key that allows you to share your service with another Megaport account holder.
For more information, see [Setting up Service Keys](/marketplace/service-keys/).

## Helpful references

* [Models for diversity and redundancy in Direct Link](https://cloud.ibm.com/docs/dl?topic=dl-models-for-diversity-and-redundancy-in-direct-link#:~:text=IBM%20Cloud%C2%AE%20Direct%20Link,gateway%20protocol%20\(BGP\)%20schemas)
