C:\Windows\Temp\vmware-imc\guestcust.log
, the Primary NIC is displayed as 0:[<timestamps> GenericNic: DEBUG] NIC [MAC 00:50:##:##:##:##, Primary 0]
HCX 4.x
When the 'Primary NIC' flag is not set, the gateway and DNS settings are not applied. Prior to HCX 4.10, the 'isPrimaryNic' field was selected by default for all NICs, which could cause issues with virtual machines that have multiple NICs. Starting with HCX 4.10, this option is no longer set by default, so if it is not selected, the gateway and DNS settings are not applied.
Please ensure that the 'Primary NIC' option is selected for the primary interface:
For the HCX API, the required field "isPrimaryNic": true should be configured under NetworkMappings.