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

# Configuring a NAT Gateway VXC

> This help topic describes how to configure a VXC connected to a NAT Gateway, including interfaces, IP addresses, BGP connections, and static routes.

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

For each VXC connected to a Megaport NAT Gateway (NAT Gateway), you can configure one or more interfaces, IP addresses, BGP connections, or static routes. You can also select a NAT source IPv4 address and specify the IP MTU value.

For information about creating a new connection from a Megaport NAT Gateway, see [Creating a NAT Gateway VXC](/nat/nat-gateway-vxc).

Depending on the VXC destination or cloud service provider, the NAT Gateway connection settings might have been auto-configured during VXC creation. Follow the steps in this task to configure the connection settings as required.

<Note>
  If the VXC provisioning status is LIVE, CONFIGURED, or DEPLOYABLE, the connection configuration fields are available when editing a VXC, regardless of provider.
</Note>

**To edit a VXC interface**

1. Select the NAT Gateway VXC you want to edit.

2. Select the VXC A-End or B-End.

   <Image src="/images/nat/nat-vxc-a-end-settings.png" shadow={true} width={800} />

3. Enter a description for the connection.

4. Enter one or more interface IP addresses and subnet masks to configure on the A-End interface.

5. (Optional) Enter an <Gloss term="IP MTU (Maximum Transmission Unit)" anchor="ipmtu" /> value (in bytes) for the VXC.\
   The IP MTU can range from 1280 to 9070 (9074 if Q-in-Q is disabled). The default value is 1500.

6. Enter any details specific to the VXC type.
   * For more information about using NAT Gateway Pools, see [Using NAT Gateway Pools](/nat/nat-gateway-pools).
   * For more information about using packet filters, see [Using Packet Filters](/nat/packet-filters).
   * For more information about adding a BGP connection, see [Configuring BGP for Megaport NAT Gateway](/nat/configure-bgp).
   * For more information about enabling Bidirectional Forwarding Detection (BFD) settings, see [Enabling the BFD protocol](/nat/bgp-advanced#bfd-protocol).
   * For more information about adding a static route, see [Configuring Static Routing on a Megaport NAT Gateway](/nat/static-routing).

7. Click **Save**.

## Helpful references

* [Configuring Advanced BGP Settings](/nat/bgp-advanced)
* [Configuring BGP for Megaport NAT Gateway](/nat/configure-bgp)
* [Configuring Static Routing on a Megaport NAT Gateway](/nat/static-routing)
* [Creating a NAT Gateway VXC](/nat/nat-gateway-vxc)
* [NAT Gateway Features](/nat/nat-gateway-features)
