Network connectivity issues often occur after an HCX Layer 2 (L2) network extension, specifically where virtual machines at the destination site are unable to communicate with the gateway or on-premises resources. This article outlines steps to troubleshoot and resolve issues where the Distributed Firewall (DFW) at the destination site blocks traffic for the migrated virtual machine.
pktcap-uw confirm traffic is dropped at the dvfilter (Distributed Firewall) layer.[root@ESXi:~] pktcap-uw --trace --ip <VM-IP> -c 2The trace session is enabled....Accept...Vsock connection from port 1142 cid 2.10:19:14.182047[1] PktHandleID: gG+PhcBFAAA=, Captured at PktFree point, TSO not enabled, Checksum not offloaded and not verified, SourcePort #######, QID 0, headroomlen 314, length 74. PATH: +- [timestamp] | VnicTx | ######### | +- [timestamp] | PortInput | ######### | +- [timestamp] | IOChain | | [email protected]#1.0.8.0.24866350 +- [timestamp] | IOChain | | [email protected]#1.0.8.0.24866350 +- [timestamp] | IOChain | | [email protected]#v2_13_0_0 +- [timestamp] | PreDVFilter | | +- [timestamp] | PktFree | |Virtual machine packets are being dropped by the destination Distributed Firewall (DFW) because of specified security rules.
summarize-dvfilter | grep -i <VM_Name> -A4world #### vmm0:DB02 vcUuid:'VM-UUID'
port ##### <vmName.eth0>
vNic slot 2
name: <dvFilter-Name>vsipioctl getfilterstat -f <filter_name>PACKETS IN OUT
------- -- ---
v4 pass: 16530 14621
v4 drop: 0 725 <- This number increases.
...
DROP REASON
-----------
match drop rule tx packets: 725 <- This number increases.