> ## 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 VXC to an MVE Integrated with Versa FlexVNF

> This help topic describes how to connect a VXC to Megaport Virtual Edge (MVE) integrated with Versa Secure SD-WAN.

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 connect a Virtual Cross Connect (VXC) to Megaport Virtual Edge (MVE) integrated with Versa.

With MVE configured, you can create VXCs to connect to services on the Megaport network without the need for any physical infrastructure. A VXC is essentially a private point-to-point Ethernet connection between an A-End (your MVE) and a B-End (one of the destination types).

A VXC is mapped with a VLAN ID on each end.

You can order VXCs to reach any destination in the Megaport network. The maximum number of VXCs you can connect to a single MVE depends on its size. For more information, see [Megaport Limits and Quotas](/limits-quotas/#mvelimits).

**To create a VXC**<Anchor name="connectavxcmve" />

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

2. If this is the first connection for the MVE, click the Cloud tile that matches the VXC type. The tile is a shortcut to the configuration page.\
   Alternatively, click **+Connection** and select a cloud destination:

   <Image src="/images/mve/add-connection-mve.png" alt="VXC tiles" shadow={true} width={740} />

   * **Cloud** -- Provision a dedicated interconnect to a public cloud service provider. After selecting Cloud, select a provider. Some providers require a service key.

     For specific CSP configuration details:

     * AWS Direct Connect -- See [Creating MVE Connections to AWS](/cloud/mve/versa/aws).

     * Azure Express Route -- See [Creating MVE Connections to Azure using ExpressRoute](/cloud/mve/versa/azure).

     * Google Cloud -- See [Creating MVE Connections to Google](/cloud/mve/versa/google).

     * Other cloud connections -- See [Creating MVE Connections to Any Endpoint](/cloud/mve/versa/generic).

## Connecting MVE to MVE

In the Megaport Portal, you can create a VXC (interconnect connectivity) between MVEs at two or more Megaport locations. The VXC links the branch locations connected to these edge MVEs via the Megaport network, without traversing the public internet for the MVE to MVE connectivity.

For specific configuration details, see [Connecting MVE to MVE](/mve/versa/connect-mve-to-mve).

## Terminating a VXC

You can terminate a VXC directly from the Megaport Portal. Terminating an MVE automatically deletes all of its associated VXCs, including the Megaport Internet connection. For more information about terminating an MVE, see [Terminating an MVE](/mve/versa/terminating-mve).

For more information about terminating a VXC, see [Terminating a VXC](/connections/terminating-vxc).
