> ## 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 IP Address Block

> This help topic describes how to order an IP Address block in the Megaport Portal.

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 order an IP Address block on the Megaport network.

IP Address is available as a standalone product, and blocks are provisioned automatically after you place your order. You can also request a new IP Address block directly from an existing Megaport Internet connection. The request takes you to the same ordering flow described below.

<Note>
  Before proceeding, ensure that you have set up your Megaport Portal account. For more information, see [Setting Up a Megaport Account](/setting-up).
</Note>

**To order an IP Address block**

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

2. Click **Add Services**, then select **IP Address**.

   <Image src="/images/ip-address/add-services-ip-address.png" alt="Add Services menu showing the IP Address option" shadow={true} width={900} />

3. Specify the block details:

   * **Block Name** -- Specify a name for the block that is easily identifiable, particularly if you plan on ordering more than one.

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

   <Image src="/images/ip-address/create-ip-address-details.png" alt="Details section of the Create IP Address form, showing Block Name and Service Level Reference fields" shadow={true} width={900} />

4. Select a location.

   Use the **Search** field, or select a region and then a metro.

   <Image src="/images/ip-address/create-ip-address-location.png" alt="Location section of the Create IP Address form, showing region tabs and metro selection" shadow={true} width={900} />

5. Select the IP version and block size:

   * **IP Version** -- IPv4 is currently the only available option.
   * **Block Size** -- Select a subnet size from /30 to /24. Each option shows the number of addresses in the block and its monthly rate.

   <Image src="/images/ip-address/create-ip-address-block-size.png" alt="IP Version and Block Size section of the Create IP Address form, showing subnet size options with address counts and monthly rates" shadow={true} width={900} />

6. IP Address orders are for a minimum 12-month contract term. Review the **Contract Term** information, and turn off **Contract Renewal** if you do not want the block to automatically renew for another 12-month term when the contract ends.

   <Image src="/images/ip-address/create-ip-address-contract-term.png" alt="Contract Term section of the Create IP Address form, showing the Contract Renewal toggle" shadow={true} width={900} />

7. Complete the **Usage & Justification** section:

   * **Purpose** -- Enter a description of the intended purpose of the block, for example, Mail Server or Load Balancer.
   * **Projected Duration** -- Select 12 Months, 24 Months, or 36 Months.
   * **Additional Remarks** (optional) -- Enter any additional information that further explains the need for IP address space.

   <Image src="/images/ip-address/create-ip-address-usage-justification.png" alt="Usage and Justification section of the Create IP Address form, showing Purpose, Projected Duration, and Additional Remarks fields" shadow={true} width={900} />

   <Note>
     The contract term for an IP Address block is fixed at 12 months. When ordering, you must select a projected duration of 12, 24, or 36 months. The projected duration does not need to match the contract term. Megaport uses the projected duration to allocate additional public IP addresses, and you must confirm that you intend to use the requested allocation within the selected timeframe.
   </Note>

8. (Optional) Under **Link Internet VXCs**, select any live Megaport Internet connections in the selected metro that you want to link to the block.

   <Image src="/images/ip-address/create-ip-address-link-vxc.png" alt="Link Internet VXCs section of the Create IP Address form, showing a list of existing connections with checkboxes" shadow={true} width={900} />

9. Review the terms and conditions.

10. (Optional) Click **+ Add New Tag** to specify any resource tags for the IP Address block. Enter a **Key** and **Value** for the tag.

    * **Key** -- Specify a lowercase string with a maximum length of 128 characters. Valid characters are letters, numbers, and - . \_ : / \\
    * **Value** -- Specify a string with a maximum length of 256 characters. Valid characters are letters, numbers, spaces, and - . \_ : @ / + \\

    <Image src="/images/ip-address/create-ip-address-resource-tags.png" alt="Resource Tags section of the Create IP Address form, showing Key and Value fields for a new tag" shadow={true} width={900} />

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

11. Click **Add IP Address Block**.

    The block is added to your cart under Configured Services.

    <Image src="/images/ip-address/create-ip-address-added-to-cart.png" alt="Configured Services panel showing the new IP Address block ready to be ordered" shadow={true} width={900} />

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

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

    <Note>
      IP Address blocks do not receive a Standard Term discount. If your cart contains only an IP Address block, the Standard Term discount does not appear at checkout. It appears only when your cart also contains services that receive a term-based discount.
    </Note>

14. Click **Order Now**.

    The IP Address block is provisioned automatically, typically within seconds.

## Helpful references

* [IP Address Overview](/ip-address)
* [Linking and Unlinking Megaport Internet Connections](/ip-address/linking-vxc)
* [Megaport Internet Overview](/megaport-internet)
