KB-HCX-5301 · VMware HCX · High Severity

Troubleshooting VMware HCX Mobility Optimized Networking (MON) Default Gateway Asymmetric Return Traffic in Extended L2 VLANs

Category: Workload Mobility · Updated: October 2024 · Status:

Observed Symptoms & Trigger Conditions

  • After enabling HCX MON on a migrated VM in cloud SDDC, the VM can reach local cloud VMs but loses connectivity to on-premises servers
  • Stateful firewalls on-premises drop returned packets with "TCP Invalid ACK" or "Out of State Connection"
  • Traceroute from on-prem client shows traffic hitting on-prem default gateway, but response packets exit via cloud Tier-0 gateway

Impact Scope

Affects migrated database and application servers operating on stretched Layer-2 subnets with HCX MON enabled.

Technical Root Cause

HCX Mobility Optimized Networking routes local traffic directly through the Cloud Tier-1 Gateway by injecting a /32 host route into the cloud routing table. However, if on-premises static routes or BGP route injection are not properly configured, on-premises clients send traffic via the on-prem default gateway (stretched L2 network extension), while the migrated VM sends response traffic through the Cloud Tier-0 gateway, creating an asymmetric routing loop that stateful firewalls discard.

Step-by-Step Resolution Procedure

Step 01

Review HCX MON Target Subnet Configuration and Default Gateway Policy

In HCX Manager, verify whether the extended network has MON enabled and check the "Allow Traffic to Local Gateway" setting.

Step 02

Configure MON Policy Routes to Enforce On-Premises Egress for Internal Subnets

Add an internal enterprise RFC1918 policy route (e.g. 10.0.0.0/8, 172.16.0.0/12) under HCX MON Policy Routes. This forces the cloud VM to route all corporate traffic back across the L2 Network Extension path rather than egressing via the Cloud Tier-0 Internet/DirectConnect gateway.

Step 03

Flush Stale ARP Caches on On-Premises Core Switch / Default Gateway

Clear the ARP entry for the migrated VM IP on the physical core switch (Cisco Nexus / Catalyst) to ensure on-premises traffic reaches the HCX Network Extension (NE) appliance MAC.

Step 04

Validate Bidirectional Path with Traceroute and TCP Handshake Analysis

Run traceroute from both directions and capture packets on the HCX Network Extension appliance to verify zero asymmetric path discrepancy.

Verification & Validation Check

Traceroute hops match symmetrically in both directions. Stateful firewall inspection logs show 0 "Out of State" drops during live HTTP/SQL sessions.
Lead Principal Architect: Wasim Sayyed, Principal VMware Architect, Pune, Maharashtra, India.
Free browser-based engineering tools execute client-side with zero server storage.

Explore Architecture & Guidance

Engineering Tools
• Node & Storage Sizing
• RVTools Analyzer
• Nutanix NC2 Assessment
• Aria Networks Engine
• DR RPO/RTO Planner
• Blueprint Generator
Core Disciplines
• Azure VMware Solution
• Nutanix NC2 on Azure
• Google Cloud VMware Engine
• VMC on AWS & DR
• NSX-T Microsegmentation
• VMware HCX Mobility
Runbooks & Guidance
• Case Studies Catalog
• 6-Phase Migration Roadmap
• Troubleshooting Knowledge Base
• Step-by-Step Tutorials
• About Wasim Sayyed