You can edit the NAT Gateway ASN after deployment, but only when there are no VXCs attached. You need to move or remove all VXCs before editing the ASN. For more information, see Moving VXCs.
- Log in to the and choose Services.
- In the Actions section for the NAT Gateway you want to edit, click Details.
- Select the Configuration tab. The sections of the tab are listed on the left. You can edit any field except the rate limit and session count. To change the Megaport Marketplace visibility, update your Megaport Marketplace profile.
-
In the ASN & BGP section, update these fields as required:
- AS Number — The ASN of the NAT Gateway. This field is unavailable while VXCs are attached to the NAT Gateway.
- Initial BGP State — Select whether newly created BGP connections are enabled or shut down by default. Select Enabled (the default) to activate new BGP sessions immediately when you save the configuration. Select Shut Down to place new BGP sessions in a shut-down state when you save the configuration. For example, you might want to select the Shut Down option if you plan to add several BGP sessions across your Virtual Cross Connects (VXCs) but need to complete other router setup before they exchange route information. After you finish configuring your routers, navigate to the relevant BGP sessions and enable them. For more information about overriding the BGP state for an individual connection, see Shutting down a BGP connection.
-
Click Save in the ASN & BGP section to apply these changes.
Each section of the tab has its own Save button. -
Update the other sections of the tab as required:
-
Prefix Filter Lists — Use the Prefix Filter Lists section to manage the prefix filter lists on the NAT Gateway.
For more information, see Megaport NAT Gateway BGP Prefix Filtering. -
Packet Filter Lists — Use the Packet Filter Lists section to manage the packet filter lists on the NAT Gateway.
For more information, see Using Packet Filters with NAT Gateway. -
Flow Export — Use the Flow Export section to manage the flow export targets on the NAT Gateway.
For more information, see Configuring flow export. -
BMP Export — Use the BMP Export section to manage the BMP export targets on the NAT Gateway.
For more information, see Configuring BMP export. -
Resource Tags — You can use resource tags to add your own reference metadata to a Megaport service.
To add a tag:- Click Add Tags.
- Click Add New Tag.
- Enter details into the fields:
- Key — String, maximum length 128 characters. Valid values are
a-z 0-9 _ : . / \ - - Value — String, maximum length 256 characters. Valid values are
a-z A-Z 0-9 _ : . @ / + \ -and spaces
- Key — String, maximum length 128 characters. Valid values are
- Click Save.
If you already have resource tags for that service, you can manage them by clicking Manage Tags.
-
Prefix Filter Lists — Use the Prefix Filter Lists section to manage the prefix filter lists on the NAT Gateway.
- (Optional) To change the NAT Gateway name, click (Edit) next to the name at the top of the NAT Gateway details page, update the name, then click Save.
-
(Optional) To change the service level reference or the contract term, select the Billing tab.
For more information, see NAT Gateway Pricing and Contract Terms.
Configuring flow export
Flow export enables IP Flow Information Export () on NAT Gateway services, allowing you to export network flow records to external collectors for traffic analysis, capacity planning, and security monitoring. You can configure up to three flow export targets for each NAT Gateway. Flow records are exported using either the UDP or TCP transport protocol. A flow export target specifies the destination to which flow records are sent.Requirements
Before configuring flow export, ensure that your service meets these requirements:- The NAT Gateway must be in a Live or Configured provisioning state.
- You must have a flow collector ready to receive IPFIX data.
- The NAT Gateway must have an active route to the collector via any attached VXC.
Validation rules
These validation rules apply when configuring flow exporters:- Maximum Targets — Each service supports up to three flow export targets.
- Target IP Address — Cannot be a reserved or loopback address (for example, 127.0.0.1).
- Target Port — Must be between 1 and 65535.
- MTU — If specified, must be a whole number between 512 and 9074 bytes.
- Address Family — If you specify a Local IP Address, it must be the same address family (IPv4 or IPv6) as the Target IP Address.
- Uniqueness — The combination of Target IP Address, Target Port, and Protocol must be unique within the service.
- Log in to the and choose Services.
- In the Actions section for the NAT Gateway, click Details.
- Select the Configuration tab, then click Flow Export.
-
Click Add Export Target.
The Add Export Target screen appears.
-
Specify the configuration details:
- Description — Enter a name to identify this flow export target.
- Local IP Address (optional) — The source IP address on the service for the flow export stream. Select an address configured on the service, or leave blank to use the default.
- Target IP Address — Enter the IPv4 or IPv6 address of your flow collector.
- Target Port — The port number of the flow collector (1-65535). Enter the port number your collector listens on.
- Protocol — Select UDP or TCP.
- MTU (optional) — Specify the maximum packet size, from 512 to 9074 bytes, for the flow export (IPFIX) stream. This limit is independent of the service MTU. Leave blank to use the service MTU.
-
Click Add.
The new flow export target configuration details are displayed in the table.
-
Specify the configuration details:
- Log in to the and choose Services.
- In the Actions section for the NAT Gateway, click Details.
- Select the Configuration tab, then click Flow Export.
-
In the row for the flow export configuration you want to edit, click (Edit).
The Edit Export Target screen appears. - Update the configuration details as required.
- Click Save.
- Log in to the and choose Services.
- In the Actions section for the NAT Gateway, click Details.
- Select the Configuration tab, then click Flow Export.
- In the row for the flow export configuration you want to remove, click (Delete).
- In the Delete Export Target screen, click Delete Target.
Configuring BMP export
BMP export lets you stream BGP session state and the Routing Information Base (RIB) from your NAT Gateway to an external collector for monitoring. You can configure up to three BMP export targets for each NAT Gateway. BMP export uses the TCP transport protocol. A BMP export target specifies the destination to which the exported data is sent.Requirements
Before configuring BMP export, ensure that your service meets these requirements:- The NAT Gateway must be in a Live or Configured provisioning state.
- You must have a BMP collector ready to receive the exported data.
- The NAT Gateway must have an active route to the collector via any attached VXC.
Validation rules
These validation rules apply when configuring BMP exporters:- Maximum Targets — Each service supports up to three BMP export targets.
- Target IP Address — Must be a single IP address without a CIDR range. Cannot be a loopback, multicast, or unspecified address (for example, 127.0.0.1 or 0.0.0.0).
- Target Port — Must be between 1 and 65535.
- Export Interval — Must be between 60 and 900 seconds.
- Address Family — If you specify a Local IP Address, it must be the same address family (IPv4 or IPv6) as the Target IP Address.
- Uniqueness — Each target description must be unique on the service. You also cannot add two targets with the same Target IP Address and Target Port.
A maximum of three BMP export targets can be configured per service. Each BMP export target description must be unique on the service.
- Log in to the and choose Services.
- In the Actions section for the NAT Gateway, click Details.
- Select the Configuration tab, then click BMP Export.
-
Click Add Export Target.
The Add Export Target screen appears.
-
Specify the configuration details:
- Description — Enter a name to identify this BMP export target.
- Local IP Address (optional) — The source IP address on the service for the BMP export stream. Select an address from an attached VXC interface, or leave blank to use the default.
- Target IP Address — Enter the IPv4 or IPv6 address of your BMP collector.
- Target Port — The port number your collector listens on (1-65535).
- Export RIB — When enabled, exports the Routing Information Base (RIB) in addition to BGP session state. This option is off by default.
- Export Interval — The interval in seconds between exports (60-900). The default is 300.
-
Click Add.
The new BMP export target configuration details are displayed in the table.
-
Specify the configuration details:
- Log in to the and choose Services.
- In the Actions section for the NAT Gateway, click Details.
- Select the Configuration tab, then click BMP Export.
-
In the row for the BMP export configuration you want to edit, click (Edit).
The Edit Export Target screen appears. - Update the configuration details as required.
- Click Save.
- Log in to the and choose Services.
- In the Actions section for the NAT Gateway, click Details.
- Select the Configuration tab, then click BMP Export.
- In the row for the BMP export configuration you want to remove, click (Delete).
- In the Delete Export Target screen, click Delete Target.