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

# Linking and Unlinking Megaport Internet Connections

> This help topic describes how to link and unlink Megaport Internet connections to an IP Address block in the Megaport Portal.

You can link an IP Address block to one or more Megaport Internet connections in the same metro. A block can be linked to multiple connections, and a connection can have multiple blocks linked to it.

Only live Megaport Internet connections in the same metro as the block are eligible for linking. You can link or unlink a connection from either the IP Address block or the Megaport Internet connection. Both methods produce the same result.

> [!WARNING]
>
> Megaport-assigned IP address space must be advertised only on Megaport Internet services. Advertising these networks to other Megaport services or third-party providers is forbidden.

## Linking from an IP Address block

Use the **Configuration** tab of the block to select the Megaport Internet connections that you want to link.

**To link from an IP Address block**

1. In the [Megaport Portal](https://portal.megaport.com), go to the **Services** page and click the IP Address block.

2. Click the **Configuration** tab.

   ![Configuration tab for an IP Address block, showing the Link Internet VXCs checklist](https://docs.megaport.com/images/ip-address/ip-address-configuration-tab.png)

3. Under **Link Internet VXCs**, select the check box next to each connection you want to link. Only connections in the same metro as the block are available for selection.

   ![Link Internet VXCs checklist with a connection checkbox selected](https://docs.megaport.com/images/ip-address/ip-address-link-checkbox-selected.png)

4. Click **Save linked VXCs**.

   The **Linked VXCs** tab shows each linked connection as a topology diagram, including the VLANs, speed, and diversity zone on each end.

   ![Linked VXCs tab showing a linked connection as a topology diagram between an MCR and a Megaport Internet VXC](https://docs.megaport.com/images/ip-address/ip-address-linked-vxcs-topology.png)

## Linking from a Megaport Internet connection

Use the **Megaport Internet** tab of the connection to select the IP Address blocks that you want to link.

**To link from a Megaport Internet connection**

1. In the [Megaport Portal](https://portal.megaport.com), go to the **Services** page and click the Megaport Internet connection.

2. Click the **Megaport Internet** tab in the Connection Details page.

   ![IP Addresses section of the Megaport Internet tab in Connection Details, showing eligible IPv4 and IPv6 blocks listed by prefix](https://docs.megaport.com/images/ip-address/megaport-internet-ip-addresses.png)

3. Under **IP Addresses**, select the check box next to each block you want to link. Blocks are listed by their prefix, not by name, and only blocks in the same metro as the connection are available for selection.

   IPv4 and IPv6 blocks appear in the same list, each shown by its prefix (for example, `203.0.113.0/28` or `2001:db8:1200::/56`). You can link both IPv4 and IPv6 blocks to the same Megaport Internet connection.

   If you do not have an existing block in the metro, click **Request IP Address** to order a new one. For more information, see [Creating an IP Address Block](https://docs.megaport.com/ip-address/creating-ip-address.md).

4. Click **Link IP Address**.

> [!NOTE]
>
> The **Configuration** tab lists available connections by name, while the **Megaport Internet** tab lists available IP Address blocks by prefix.

## Unlinking an IP Address block

You can also unlink an IP Address block from a Megaport Internet connection.

* **From the block** -- In the **Services** page, click the IP Address block you want to update, then click the **Configuration** tab. Clear the check box next to the connection, then click **Save linked VXCs**.

  ![Link Internet VXCs checklist with a linked connection checkbox selected, ready to be cleared to unlink it](https://docs.megaport.com/images/ip-address/ip-address-unlink-checkbox.png)

* **From the connection** -- In the **Services** page, click the Megaport Internet connection, then click the **Megaport Internet** tab. Under **IP Addresses**, click **Unlink** next to the block.

  ![IP Addresses section of the Megaport Internet tab, showing a linked block with an Unlink button](https://docs.megaport.com/images/ip-address/megaport-internet-unlink-button.png)

Changes apply immediately after saving. Unlinking a connection does not delete the IP Address block or the connection, it only removes the association between them. If you terminate the IP Address block or the connection, the link is removed automatically.

## Helpful references

* [Creating an IP Address Block](https://docs.megaport.com/ip-address/creating-ip-address.md)
* [IP Address Overview](https://docs.megaport.com/ip-address.md)
* [Megaport Internet Overview](https://docs.megaport.com/megaport-internet.md)


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