> ## 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 a Megaport Internet Connection for a NAT Gateway

> This help topic describes how to create a Megaport Internet connection for a Megaport NAT Gateway in the Megaport Portal

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>;
};

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;
};

This topic describes how to create a Megaport Internet connection for a NAT Gateway in the Megaport network.

With a NAT Gateway configured, you can create a Megaport Internet connection. You can create a Megaport Internet connection for a NAT Gateway, for example, as your main or back-up internet connection, or to establish an internet connection for seasonal needs or for specific time-bound projects.

For more information about Megaport Internet connections, see [Megaport Internet Overview](/megaport-internet).

## Creating a Megaport Internet connection

You can create a Megaport Internet connection for a NAT Gateway during NAT Gateway provisioning or any time after it has been provisioned.

**To create a Megaport Internet connection**

1. In the <Link href="https://portal.megaport.com">Megaport Portal</Link>, go to the **Services** page and select the NAT Gateway you want to use.

   If you haven't already created a NAT Gateway, see [Creating a NAT Gateway](/nat/creating-nat-gateway).

2. If this is the first connection for the NAT Gateway, click the **Megaport Internet** tile. The tile is a shortcut to the configuration page. Alternatively, click **+Connection**.

   <Image src="/images/megaport-internet/nat-create-megaport-internet.png" shadow={true} width={700} />

   NAT Gateway details including the speed, location, and diversity zone are displayed. The diversity zone for an A-End service is visible after the service is deployed and available.

3. Click **Megaport Internet**.\
   Port details including name, location, diversity zone, and latency are displayed.

4. Select the target Port (the internet router).\
   The B-End of a Megaport Internet connection can be anywhere in the same country as the originating NAT Gateway.\
   You can filter by diversity zone, or select to view all.
   <Image src="/images/megaport-internet/select-ip-transit-router-nat.png" alt="Select the B-End or IP Transit router for the Megaport Internet connection" shadow={true} width={700} />

5. Click **Next**.

6. Specify the connection details:

   * **Connection Name** -- The name of your Megaport Internet connection 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 rate limit is configurable starting from 20 Mbps and can scale to several Gbps or more, in 1 Mbps increments. Available speed tiers might vary by location and service type. You can change the speed as required after you create the Megaport Internet connection. Monthly billing details appear based on location and rate limit.

   * **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 [Megaport Internet Pricing and Contract Terms](/finance/megaport-internet-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. Valid values are a-z 0-9 \_ : . / \ -
        * **Value** -- string maximum length 256. 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/megaport-internet/tvxc-connection-details-nat.png" shadow={true} width={650} />

7. Click **Next**.\
   The NAT Gateway A-End Connection Details page is displayed, indicating that the NAT Gateway connection configuration will be generated automatically. The connection details can be changed later if required.

8. Click **Next** to review the Megaport Internet connection summary, including price.

9. Click **Add VXC** to save the connection.

10. Click **Review Order** to proceed through the checkout process.\
    When the Megaport Internet connection is deployed, you can view it in the Portal Services page.
    <Image src="/images/megaport-internet/tvxc-connection-created-nat.png" shadow={true} />

## Updating a Megaport Internet connection

You can update a Megaport Internet connection for a NAT Gateway any time after it has been created.

**To edit a Megaport Internet connection**

* Click the gear icon next to the connection in the Megaport Portal to make changes.

  <Image src="/images/connections/vxc-gear-icon.png" alt="The VXC details button" shadow={true} width={200} />

  You can modify the details on the Megaport side including the connection name, rate limit, service level (invoice) reference, connection state, and contract terms. You can also modify the NAT Gateway connection details including interface IP address, NAT source IP address, BGP connections, enable BFD, and static routes.\
  Once submitted, the changes take effect in a few minutes.

**To add BGP details to a Megaport Internet connection**

You can add BGP information to the Megaport Internet connection when the connection is live.\
For more information, see [Enabling BGP](/megaport-internet/routing#enabling-bgp).

## Helpful references

* [Creating a Megaport Internet Connection for an MCR](/megaport-internet/mcr)
* [Creating a Megaport Internet Connection for an MVE](/megaport-internet/mve)
* [Creating a Megaport Internet Connection for a Port](/megaport-internet/port)
* [Megaport Internet Pricing and Contract Terms](/finance/megaport-internet-pricing)
* [Megaport Internet Routing Guide](/megaport-internet/routing)
* [Monitoring Ports, VXCs, Megaport Internet, and IXs](/monitoring/port-vxc-monitoring)
* [Terminating a Megaport Internet Connection](/megaport-internet/terminating-connection)
* [Troubleshooting Megaport Internet Connectivity](/troubleshooting/mic/megaport-internet)
* [Understanding the Services Page](/portal-admin/services-page)
* [VXC, Megaport Internet, and IX Billing](/finance/billing-details)
