Setting Up Service Keys

Service keys let you connect ports in separate Megaport accounts and enable business-to-business VXCs.

Play video   Watch a 7-minute video for service keys for VXCs.

Requirements and assumptions

Before you create a service key, ensure that you meet these requirements:

  • Access to the Megaport Portal
  • Both you and your customer have Megaports on the Megaport network, with live cross connects on both ends
  • Layer 2/Layer 3 devices are on each end terminating the physical connections
  • Equipment supporting 802.1q trunking is on the two links connecting into Megaport

Creating a service key

You can create either a single use or a multiuse service key.


Once you create service keys, they cannot be removed.

To create a service key

  1. In the Megaport Portal, go to the Services page and select the Megaport you want to use.

  2. Click the Service Keys icon.
    Service Keys icon

  3. Click Add.

  4. Enter a label (name) for the key.
  5. Select Single Use or Multi-Use.
  6. Assign a rate limit.
  7. For single use keys only, specify a VLAN ID.
  8. Specify how long the key will be valid.
  9. Select Active.
    If you don’t want the key to be available right away, do not select Active – you can edit this key later to change this setting.
  10. Click Add to save the key.
    Service key configuration

Viewing, copying, and editing a service key

When configured, service keys appear on the Portal. Click the service key icon for a Megaport to show the configured keys. Click the key to copy it to the clipboard; click Edit to make changes.

Service key details

Sharing the key

You can share the key however you prefer, such as email or messaging.

When you copy and send the key, recipients can create a VXC to you based on your parameters. Remember, both you and your customers must have active Megaports on the Megaport network for this to work.


The end user cannot alter or modify the service key parameters.

Creating a VXC with a service key

Once the service key is created and shared, anybody with the key can create a connection.

To create a VXC with a service key

  1. Log in to the Megaport Portal.

  2. Find the Megaport that you want to use for the connection and click +Connection and click Enter Service Key.
    Enter Service Key

  3. Enter the service key in the Megaport Service Key ID field.
    Megaport validates the key and displays basic information about the key.
    Service key validation

  4. Click Next.

  5. Specify these connection details:

    • Name your connection – The name of your VXC to be shown in the Megaport Portal.
    • Invoice Reference - This is an optional field. It can be any text, such as a PO number or billing reference number.
    • Rate Limit – The speed of your connection in Mbps, up to the maximum limit defined by the key.
    • Preferred A-End VLAN – Optionally, specify an unused VLAN ID for this connection. This must be a unique VLAN ID on this Megaport and can range from 2 to 4093. If you don’t specify a value, Megaport will assign one.

      (The B-End VLAN for the provider side termination will be automatically populated based on the service key.)

      Alternatively, you can click to Untag for this VXC to remove the VLAN tagging for this connection. The untagged option limits you to only one VXC deployed on this port.

  6. Click Next.
    A summary page appears that includes the monthly cost. Click Back to make changes or click Add VXC to move this configuration to your cart. Once you have finished this configuration, you can configure additional VXCs or proceed through the checkout process.

Last update: