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

# Adding a Port to an Existing LAG

> This help topic describes how to add a Port to an existing Link Aggregation Group.

export const Gloss = ({term, anchor, langDir = 'en'}) => {
  const errorPrefix = '\x1b[31;1;4mERROR\x1b[0m: Gloss -';
  if (typeof term !== 'string') {
    term = String(term);
  }
  if (typeof anchor !== 'string') {
    anchor = String(anchor);
  }
  if (!term || term === 'undefined') {
    console.error(`${errorPrefix} the \`term\` property is required — rendering an empty string instead`);
    return <></>;
  }
  if (!anchor || anchor === 'undefined') {
    console.error(`${errorPrefix} the \`anchor\` property is required — rendering an empty string instead`);
    return <></>;
  }
  const lang = langDir === 'en' ? '/' : '/' + langDir + '/';
  const glossaryPage = lang + 'glossary/#' + anchor;
  return <a href={glossaryPage}>{term}</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>;
};

The most simple LAG configuration is a single Port LAG, which configures the device on the Megaport side to run LACP on a single channel. However, this configuration doesn’t provide any added resilience. If Port capacity or traffic status requires resilience, you can add Ports to a LAG. For example, if traffic moves from development to production, you might require additional Ports.

When you add one or more Ports to a live LAG, they are automatically assigned the same location, speed, and Megaport Marketplace visibility as other Ports in the LAG. Any Ports that you add to a diverse LAG will inherit the diversity zone of the LAG.

**To add a Port to an existing LAG**

1. Log in to the <Link href="https://portal.megaport.com">Megaport Portal</Link> and choose  **Services**.

2. Select a Port that is part of a LAG and click **+Ports**.
   <Image src="/images/connections/lag-add-ports.png" alt="Adding a Port to a LAG" shadow={true} width={600} />

3. Specify these details for the new Port:

   * **Port Speed** -- Select the required Port speed. Port capacity depends on location and service availability. Ensure that your equipment is capable of interfacing with the selected speed. If Port diversity is available at the location and speed you select, Port diversity options are enabled. If Port diversity is not available at your desired location, contact a Megaport Sales representative for more information.

   * **Port Name** -- Specify an easily identifiable name for the Port.

   * **Megaport Marketplace** -- By default, each service is private to your enterprise and consumes services from the Megaport network for your own internal company, team, and resources. When set to private, the service is not searchable in the Megaport Marketplace, however, others can still connect to you using a [service key](/marketplace/service-keys). Megaport Marketplace visibility is controlled on your Megaport Marketplace profile. For more information about how to make your service visible to the Megaport Marketplace, see [Adding services to your profile](/marketplace/profile#adding-services-to-your-profile).

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

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

     Enable the [Minimum Term Renewal](/portal-admin/auto-renew/#auto-renew) option 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 [Port Pricing and Contract Terms](/finance/port-pricing).

     <Note>
       Partner and partner-managed accounts cannot view or change Port contract terms.
     </Note>

   * **Cross Connect** -- When you have entered a Port speed, the <Gloss term="Cross Connect" anchor="cross-connect" /> section will appear if Cross Connect is available at your chosen location.
     Select **Yes** if you want to include a Cross Connect with your Port order. The price for the Cross Connect will be shown.
     For more information, see [Ordering a Cross Connect](/connections/cross-connect/).

   * **Port Diversity** -- Diversity options are only displayed if diversity is available at this location and speed.

   * **LACP & LAG Ports** -- Specify the number of Ports to add to the LAG from the drop-down list. The maximum number of Ports in a LAG is 8.

   * **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. Valid values are a-z 0-9 \_ : . / \ -
        * **Value** -- string maximum length 256. Valid values are a-z A-Z 0-9 \_ : . @ / + \ - (space)
     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/connections/lag-new-port.png" alt="New Port details" shadow={true} width={500} />

4. Click **Next**.\
   The price updates dynamically based on your selections.

5. Complete the order process.\
   For more information, follow steps 5 to 10 in [Creating a Port](/connections/creating-port).
