After extending networks using HCX and enabling Mobility Optimized Networking (MON), traffic from virtual machines in the cloud is not staying within the cloud environment despite configuring deny rules in the MON Policy Routes. This causes asynchronous routing where traffic ingress and egress paths differ. The traffic continues to flow through the HCX tunnel to on-premises instead of being forwarded to the Tier-1/Tier-0 gateway as expected.
Important: MON Policy Routes evaluate only the destination IP address of packets from MON-enabled cloud VMs. This is critical to understand for proper traffic control. When we refer to "traffic" in this article, we specifically mean "traffic destined for a particular IP address or subnet."
When a VM with MON enabled sends packets:
The issue occurs due to the unique way MON Policy Routes evaluate traffic and make routing decisions based on destination IP address specificity and allow/deny settings. Two main causes contribute to this problem:
When multiple policy routes exist, they are evaluated according to their specificity (more specific routes take precedence), not the order in which they appear in the list. This means a more specific rule with a longer prefix (e.g., /32) will be evaluated before a less specific rule with a shorter prefix (e.g., /24), regardless of their position in the policy route list.
In MON Policy Routes, "Allow" and "Deny" have special meanings that are often counterintuitive:
This is opposite to what most network administrators expect, where typically "allow" permits traffic to flow somewhere and "deny" blocks it.
For example, consider a configuration where there is a broad subnet rule (172.16.0.0/12 set to Allow) and a more specific subnet rule (172.16.5.10/32 set to Deny). An administrator might expect traffic to 172.16.5.10 to stay in the cloud because of the specific deny rule, but depending on how the rules are evaluated, the traffic might still go to on-premises due to the broader allow rule taking precedence.
When a VM with MON enabled tries to send traffic:
The order of evaluation is based on specificity, not the order in which rules appear in the interface:
By default, HCX creates the following policy routes:
This default configuration can cause issues when you want specific RFC-1918 destination traffic to stay in the cloud, requiring you to add more specific Deny rules.
To correctly configure MON Policy Routes so that traffic destined for specific IP addresses remains in the cloud rather than going on-premises:
Understanding this proper configuration ensures traffic to specific IP ranges remains in the cloud, preventing asynchronous routing issues and optimizing network traffic flows.
If the error persists after following these steps, contact Broadcom Support for further assistance.