Configure HCX public internet connectivity
You can configure public internet access for your HCX public VLAN by associating Elastic IP addresses with your VLAN. This enables direct internet connectivity for VMware HCX appliances and workloads that require internet access for migration operations.
Related topics
This topic covers managing internet access for HCX public VLAN. For complete implementation:
-
Complete prerequisites in Setting up Amazon Elastic VMware Service.
-
Configure initial setup in Getting started with Amazon Elastic VMware Service.
-
Configure internet access (this topic).
About HCX VLAN internet access
You can configure internet access for VMware HCX appliances, allowing you to perform HCX migration of your workloads to Amazon EVS over the internet.
This approach:
-
Enables virtual machine migrations without requiring dedicated private connectivity.
-
Provides a flexible, cost-effective solution for migration.
Important
HCX internet-based migration is generally not recommended for:
-
Applications sensitive to network jitter or latency.
-
Time-critical vMotion operations.
-
Large-scale migrations with strict performance requirements.
For these scenarios, we recommend using HCX private connectivity. A private dedicated connection offers more reliable performance compared to internet-based connections.
Note
The workload migration process has been tested and verified with VMware Cloud Foundation (VCF) 5.2.1 and VMware HCX 4.10.
Internet connectivity overview
Review the following considerations.
HCX networking requirements and DNAT
HCX has specific networking constraints that affect how you set up public internet access.
HCX does not support Destination Network Address Translation (DNAT). Instead, HCX requires the uplink network to be routable with a default gateway IP address.
Amazon EVS VLAN subnets include a default gateway IP address like other VPC subnets. However, these subnets are always private subnets, even when you use CIDR blocks outside the RFC1918 address range.
Enabling HCX internet connectivity
To enable internet connectivity without DNAT, Amazon EVS uses a specific CIDR configuration approach:
-
Internet routable CIDR requirement: Amazon EVS requires an internet routable CIDR that matches your HCX VLAN subnet CIDR.
-
IPAM allocation: Amazon EVS uses a public IPAM-allocated CIDR with a minimum netmask length of /28 as the internet routable CIDR.
-
VPC configuration: You must manually add the public IPAM-allocated CIDR to your VPC as a secondary VPC CIDR.
-
VLAN subnet deployment: After IPAM and VPC are configured, you can use the public IPAM-allocated CIDR in the HCX VLAN subnet during Amazon EVS deployment.
-
Elastic IP configuration: Amazon EVS requires the following configuration:
-
Allocate Elastic IPs: You allocate Elastic IPs from the IPAM allocated CIDR. You must allocate at least two Elastic IP addresses (EIPs) from the IPAM pool for the HCX Manager and HCX Interconnect (HCX-IX) appliances. Allocate an additional Elastic IP address for each HCX network appliance that you need to deploy.
-
Associate with VLAN: You associate each Elastic IP that you want to use with an HCX appliance to the HCX VLAN subnet. Use the Amazon EVS console or AWS CLI for this association.
-
Configure gateway address: The first usable address from the CIDR becomes the gateway address that you configure in your HCX appliance.
-
Traffic routing: Traffic for each associated Elastic IP routes directly to the destination HCX appliance with the same IP address, without DNAT.
-
For steps to configure HCX with internet connectivity for Amazon EVS environment deployment, see Setting up Amazon Elastic VMware Service and Getting started with Amazon Elastic VMware Service.
Operation considerations
-
The HCX public VLAN CIDR block must have a /28 netmask length.
-
EIPs can be associated with or disassociated from the HCX public VLAN after deployment using the Amazon EVS console or AWS CLI, but they must be from the same IPAM pool.
-
Each EIP association has its own unique association ID.
-
You can have up to 13 EIPs from a public IPAM pool associated with the /28 HCX public VLAN. You cannot associate the first two EIPs or the last EIP from the public IPAM-allocated CIDR block with the HCX public VLAN subnet. These EIPs are reserved as network, default gateway, and broadcast addresses. Amazon EVS throws a validation error if you attempt to associate these EIPs with the VLAN.
Security considerations
-
Network access control lists (ACLs) still apply to traffic flowing through the HCX public VLAN subnet.
-
Security group rules do not apply to traffic on HCX public VLAN subnets. Use network ACLs for traffic control.
Important
If you are connecting over the internet, associating an Elastic IP address with a VLAN provides direct internet access to all resources on that VLAN. Ensure that you have appropriate network access control lists configured to restrict access as needed for your security requirements.
Managing Elastic IP addresses for VLANs
You can associate and disassociate Elastic IP addresses with an HCX public VLAN using the Amazon EVS console or AWS CLI.
Note
Amazon EVS only supports associating and disassociating Elastic IP address with an HCX public VLAN at this time.
Associate an Elastic IP address with a VLAN
Prerequisites
Ensure that you have the following:
-
Elastic IP address is allocated from the Amazon-owned public IPAM pool.
-
Amazon EVS environment is already created.
Disassociate an Elastic IP address from a VLAN
Prerequisites
Ensure that you have the following:
-
Amazon EVS environment is already created.
-
EIP is associated with the Amazon EVS environment.
About HCX WAN Optimization for internet-based migrations
When performing migrations over the internet, HCX WAN Optimization (HCX-WO) can improve migration performance. The service works in conjunction with the HCX Interconnect appliance (HCX-IX) to:
-
Apply data reduction techniques to minimize bandwidth usage.
-
Implement WAN path conditioning to optimize network performance.
-
Improve migration speeds over high-latency internet connections.
-
Enhance the reliability of internet-based migrations.
HCX WAN Optimization is particularly useful for internet-based migrations where:
-
Network latency may be higher than private connectivity options.
-
Available bandwidth may be limited or variable.
-
Network conditions may fluctuate due to internet traffic patterns.
For detailed instructions on setting up HCX WAN Optimization after configuring internet connectivity, see (Optional) Set up HCX WAN Optimization.
Note
While WAN Optimization can significantly improve internet-based migration performance, it may not provide additional benefits in environments with dedicated 10Gbit, low-latency connections. Consider your network characteristics when deciding whether to enable this feature.