Creating a VXC between an MCR and AWS with a Hosted Connection
This example creates an AWS Hosted Connection in the US market. The steps include how to:- get the MCR product ID
- find the location ID for an available US market
- validate and order the VXC
- configure two static routes
- configure connections — one connection with details and one without.
productUid for the MCR.
To get the productUid for the MCR
-
Get the product list.
-
From the returned product details, locate the
productUidvalue for the MCR you want to connect. This example uses this value: fee85cc0-f06f-4ad7-bce7-36aef7dbe0d0
-
Get the list for all interfaces Megaport has with Cloud Service Providers.
You can filter the results by
connectTypeandvxcPermitted. - Click the magnifying glass and search through the response for a site matching your location criteria. For this example, select “US West (Oregon) (us-west-2) [DZ-RED]” with “locationId”: 57.
[DZ-RED] means Red diversity zone. Each AWS Hosted Connection site provides two diversity zones to provide redundancy: DZ-Red and DZ-Blue.
-
Create a request with this URL:
-
Add these headers to the request:
- Content-Type: application/json
- Authorization: Bearer {your accessToken}
- Create the Body of the request with the configuration details. This example uses MCR product ID, the AWS location ID for the B-End, creates two static routes, and configures BGP connections – one connection with MED details and one without. The following sections provide details about the static routes and BGP connections.
Static routes
You can create multiple static routes per interface by adding anipRoutes array to the interfaces array of the A-End partner configuration object:
BGP connections
You can create multiple BGP connections per interface by adding a bgpConnections array to the interfaces array of the A-End partner configuration object:Bidirectional Forwarding Detection (BFD)
Thebfd configuration object applies to all BGP connections on the interface that have bfdEnabled = true.
The BFD settings are not editable. The default values configured when BFD is enabled are:
- : 300 milliseconds
- : 300 milliseconds
- : 3
These settings will be used for all BGP connections on the VXC where BFD is enabled.
DHCP pools
You can configure a DHCP server pool on an MCR VXC interface. A DHCP pool enables the MCR to act as a DHCP server, assigning IP addresses to devices connected through the interface. Add adhcpPools array to the interfaces array of the A-End or B-End partner configuration object:
- DHCP pools are supported only on MCR products.
- DHCP pools are not supported when the opposite end of the VXC is a Transit or IX connection.
- DHCP pools are not supported on IPsec tunnel interfaces.
- Each interface supports a maximum of one DHCP pool.
Autoconfiguration with AWS, Azure, and Google
For Azure, AWS Hosted VIF, and Google, Megaport can set up the IP addressing and BGP details on both the MCR and the CSP side ensuring a working BGP setup. This also minimizes the amount of switching between the CSP and Megaport portals. While the Portal handles the autoconfiguration by default, you can also use the API to trigger the BGP autoconfiguration. The functionality is triggered when the interfaces key in partnerConfig does not exist or is null. To configure BGP peering for CSPs-
Create a request with this URL:
-
Add these headers to the request:
- Content-Type: application/json
- Authorization: Bearer {your accessToken}
- Create the Body of the request with the configuration details. Different templates are available here for the most popular CSPs.