> ## 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 an MVE Integrated with Peplink

> This help topic describes how to create and configure Megaport Virtual Edge (MVE) with Peplink.

export const image_1 = "/images/mve/peplink/create-mve-order-summary.png"

export const product_0 = "Peplink FusionHub"

export const image_0 = "/images/mve/peplink/create-mve-details-vendor.png"

export const Anchor = ({name}) => {
  const errorPrefix = '\x1b[31;1;4mERROR\x1b[0m: Anchor -';
  if (name === undefined || name === null || name === 'undefined') {
    console.error(`${errorPrefix} \`name\` must have a value — rendering an empty string instead`);
    return <></>;
  }
  const raw = typeof name === 'string' ? name : JSON.stringify(name);
  const id = raw.replace(/\s+/g, '-').replace(/[^A-Za-z0-9_-]/g, '').replace(/-+/g, '-').replace(/^-+|-+$/g, '');
  if (!id) {
    console.error(`${errorPrefix} \`name\` "${name}" sanitizes to an empty id — rendering an empty string instead`);
    return <></>;
  }
  return <a style={{
    scrollMarginTop: 'var(--scroll-mt)'
  }} id={id}></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;
};

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

This topic describes how to create and configure a Megaport Virtual Edge (MVE) with Peplink.

For information about the Peplink-specific settings, see [Configuring FusionHub with Cloud-init for Automated Setup](https://download.peplink.com/resources/configuring_fusionhub_with_cloud-init_for_automated_setup.pdf) and [FusionHub User Manual and Installation Guide](https://download.peplink.com/manual/FusionHub-User-Manual-and-Installation-Guide.pdf).

## Basic steps

This section summarizes the configuration steps using the Megaport Portal. Detailed procedures follow this basic step summary.

The basic steps are:

* Obtain a license from Peplink.
* Create the Peplink MVE in the Megaport Portal.
* Ensure that the connection has been established on the Peplink portal.

<Anchor name="creating-mve" />

## Creating an MVE in the Megaport Portal

When creating an MVE, select a location that supports the MVE and is in a compatible metro area for your network design. You can connect multiple locations to an individual MVE. For more information about location details, see [Planning Your Deployment](/mve/peplink/plan-deployment).

You can deploy multiple MVEs within the same metropolitan area for redundancy or capacity reasons.  As part of the MVE creation process, you will also typically create a Megaport Internet connection.

**To create an MVE**

1. In the <Link href="https://portal.megaport.com">Megaport Portal</Link>, go to the **Services** page.

2. Click **Add Service**, then select **Virtual Edge (MVE)**.
   <Image src="/images/snippets/add-services-button.png" alt="Add Service button" shadow={true} width={150} />
   The Create Virtual Edge page opens. Complete the sections on this page to configure your MVE. The order summary updates as you make selections. On wider screens, the summary is displayed in a panel on the right. On narrower screens, it is displayed in a bar at the bottom of the page that you can expand.
   <Image src={image_0} alt="Create Virtual Edge page showing the Details and Select Vendor / Product sections, with the order summary panel on the right" shadow={true} width={900} />

3. In the **Details** section, specify these fields:
   * **MVE Name** -- Specify a name that helps you identify the MVE, particularly if you plan to have more than one MVE. This name appears in the Megaport Portal.
   * **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.
   * **Project** (optional) -- Select a project to add the MVE to, or leave the default (No Project).\
     You can type in the field to search by project name. The selected project appears in the order summary, and the MVE is added to it when provisioned.

     To create a project without leaving the page, select **New Project** at the bottom of the list, then specify a project name and description. The new project is automatically selected for the order.

     <Note>
       You need permission to manage projects to create a project. Without this permission, the **New Project** option does not appear, but you can still select an existing project.
     </Note>

4. In the **Select Vendor / Product** section, select **{product_0}**, then select the software version.\
   To find the product, browse the category tabs or use the **Search vendors** field. The locations, sizes, and configuration fields available on the rest of the page depend on the product you select.

5. In the **Location** section, specify these fields:
   * **Location** -- Select your preferred location. Use the **Search** field to find a location by metro or country name. Alternatively, browse the region tabs, then select a location.\
     Only locations where the selected product is available are listed. Select a location geographically close to your target branch or on-premises locations.

     The country you choose must be a market in which you have already registered. If you have not registered a billing market in the location where you will deploy the MVE, follow the procedure in [Enabling Billing Markets](/finance/enabling-market).

   * **Mode** -- Select Auto to have Megaport automatically choose a provider and data center at the selected location. Select Manual to choose the provider and data center yourself.

   * **Diversity Zone** -- Select Red or Blue, or select Auto to have Megaport select the zone for you. The selected diversity zone appears in the order summary. For more information, see [MVE Diversity](/mve/mcr-mve-diversity).

6. If you selected Manual mode, select a data center provider in the **Provider** section, then select a data center from the drop-down list in the **Data Centre** section.\
   Only providers and data centers available at your selected location are listed.
   <Image src="/images/mve/create-mve-location-provider.png" alt="Create Virtual Edge page showing the Location section with Manual mode selected, and the Provider and Data Centre sections" shadow={true} width={650} />

7. In the **MVE Size** section, select a size.\
   Each size shows its vCPU and RAM allocation. For example, Small (MVE 2/8) has 2 vCPUs and 8 GB of RAM. Only sizes supported by the selected product are listed, and sizes that are not available at the selected location are grayed out and labeled *Not available here*. The sizes support varying numbers of concurrent connections, and individual partner product metrics vary slightly.
   <Image src="/images/mve/create-mve-size.png" alt="MVE Size section showing the available sizes, with one size grayed out and labeled Not available here" shadow={true} width={650} />
   <Note>
     If the MVE size you want is not available, there is not enough capacity at the selected location. You can either select another location with enough capacity or contact your Account Manager to discuss requirements.
   </Note>

8. In the **Vendor Configuration** section, specify the Peplink FusionHub-specific settings:

   * **License Data** -- Specify the Peplink FusionHub license key (the valid license for the virtual appliance). The license key is used to register the Peplink FusionHub MVE instance with the Peplink InControl2 portal. The license key must be exactly 16 characters long.

     <Note>
       The license key is not validated in the Megaport Portal.
     </Note>

   * **Admin Password** -- Specify a temporary administrator password. The password must be a minimum of 8 characters and include:

     * 1 uppercase character (A-Z)
     * 1 lowercase character (a-z)
     * 1 number (0-9)
     * 1 symbol

     <Note>
       Megaport does not store customer passwords.
     </Note>

   * **Virtual Interfaces (vNICs)** -- Each Peplink MVE is configured with two vNICs by default. To change a name, type over the name text in the box. You can also change the vNIC name later, after the MVE has been deployed. You cannot remove a default vNIC.

     You can add a total of five vNICs to the MVE, including the two added by default. Peplink FusionHub requires a minimum of two vNICs.\
     For more information, see [Types of vNIC Connections](/mve/vnic-connections).

     To add a vNIC, click **Add**, then specify a name for the vNIC.

     <Note>
       If you want to increase or decrease the number of vNICs on this MVE after it has been deployed, you must delete the entire MVE and recreate it. You cannot add or delete vNICs on a deployed MVE.
     </Note>

   <Image src="/images/mve/peplink/create-mve-vendor-configuration.png" alt="Vendor Configuration section showing the Peplink License Data and Admin Password fields, and the default Management Plane and Data Plane vNICs" shadow={true} width={412} />

9. In the **Pricing** section, specify these fields:
   * **Contract Term** -- Select a contract term: No Minimum Term, 12 Months, 24 Months, 36 Months, 48 Months, or 60 Months. Longer terms result in a lower monthly rate. The default is 12 Months.
   * **Contract Renewal** -- Automatically renews the contract at the same price and term length when the current term ends. The initial setting comes from your company default. If you disable it, the contract rolls over to a month-to-month term at the end of the current term, without the term discount. Contract Renewal is not available when you select No Minimum Term.

     For more information, see [Managing Minimum Term Renewal](/portal-admin/auto-renew) and [MVE Pricing and Contract Terms](/finance/mve-pricing).

10. In the **Resource Tags** section, add any tags you want to apply to this MVE.\
    To add a tag, click **Add New Tag**, then specify these fields:
    * **Key** -- Specify a lowercase string with a maximum length of 128 characters. Valid characters are lowercase letters, numbers, and `- . _ : / \`.
    * **Value** -- Specify a string with a maximum length of 256 characters. Valid characters are letters, numbers, spaces, and `- . _ : @ / + \`.
      Repeat for each tag. You can add up to 50 tags.
    <Warning>
      Never include sensitive information in a resource tag. Sensitive information includes commands that return existing tag definitions and information that identifies a person or company.
    </Warning>
    The price in the order summary updates dynamically based on your selections. Note that some partner-managed accounts do not display the pricing details.

11. Review the order summary, then click **Add MVE**.

    <Image src={image_1} alt="Order summary panel showing the MVE vendor, version, size, diversity zone, contract term, auto renew term, pricing, and the Add MVE button" shadow={true} width={300} />

    The newly created MVE is added to your cart under Configured Services, ready for checkout.

    You are prompted to create a Megaport Internet connection. A Megaport Internet connection provides connectivity and allows MVE to register and communicate with Peplink FusionHub.

    <Image src="/images/mve/peplink/create-transit-vxc.png" alt="Success dialog with the Not now and Create Megaport Internet buttons" shadow={true} width={650} />

**To create the Megaport Internet connection**

1. Click **Create Megaport Internet** to proceed (recommended), or click **Not now** to provision internet access at a later time.

   <Note>
     MVE requires connectivity to the internet onto the management plane virtual interface. You can either provision a Megaport Internet connection or configure a third-party internet connection using a private VXC. **We strongly recommend that you create a Megaport Internet connection for the initial MVE startup and deployment to ensure that the MVE is provisioned and functioning correctly**.
   </Note>

2. Select the target Port (the internet router).\
   The B-End of a Megaport Internet connection can be anywhere that Megaport Internet is available.\
   You can use the **Search** field to find the Port name, Country, Metro City, or address of your destination Port. You can also filter by diversity zone.

3. Click **Next**.

4. 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.

     <Tip>
       Use the same Service Level Reference numbers for the Megaport Internet connection and MVE to help identify the matching pair in your invoice.
     </Tip>

   * **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>

   * **A-End vNIC** -- Select **vNIC-0** for initial management access.

   * **Preferred A-End VLAN** (optional) -- Select **Untagged** to remove VLAN tagging and allow first-time administrative login to the device.

   * **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).

     Select **Automatically Renew at the same price at the end of Contract Term** 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 [Managing Minimum Term Renewal](/portal-admin/auto-renew/#auto-renew).

     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 characters. Valid values are `a-z 0-9 _ : . / \ -`
        * **Value** -- String, maximum length 256 characters. Valid values are `a-z A-Z 0-9 _ : . @ / + \ -` and spaces
     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/snippets/tvxc-connection-details-data2.png" alt="Megaport Internet connection details" shadow={true} width={425} />

5. Click **Next** to proceed to the connection detail summary.

6. Click **Add VXC** to move this configuration to your cart.

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

8. 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>

9. Click **Order Now**.

Ordering MVE provisions the appliance and assigns IP addresses from the Megaport SDN. The MVE provisioning takes only a few minutes to complete. The provisioning process spins up a Peplink FusionHub MVE.

## Next steps

Once the MVE is provisioned with an Active status, the next step is to connect a VXC to a Cloud Service Provider (CSP), a local port, or a third-party network. You can optionally connect a physical Port to the MVE through a private VXC or connect to a service provider in the Megaport Marketplace.

For more information, see [Creating a VXC](/mve/peplink/creating-mve-vxc).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.