In NSX 4.1, Antrea Traceflow does not support tracing the path of a packet that travels between Antrea Kubernetes cluster and NSX overlay network. However, some workaround is possible, as explained in this documentation.
Trace the Path of a Packet from NSX VM to K8s Pod
- Navigate to Traceflow card, click Get Started. , and in the
- In the Source area, select Virtual Machine from the Type drop-down menu.
- In the Destination area, select IP-Mac. Click the Layer 3 option, and then enter any one of these IP addresses:
- Kubernetes Ingress IP address
- LoadBalancer Service IP address
- Node IP address
- Pod IP address (if pod IP is routable on the underlying network)
NSX Traceflow will trace the path of the packet till it leaves the NSX overlay network.
- Kubernetes Service (LoadBalancer, NodePort)
- Kubernetes Gateway
- Kubernetes Ingress
Therefore, you cannot trace the path of the packet after it reaches the Antrea Kubernetes cluster.
Trace the Path of a Packet from K8s Pod to NSX VM
- Navigate to Traceflow card, click Get Started. , and in the
- Click the Antrea Traceflow tab.
- In the Source area, select Pod from the Type drop-down menu.
- In the Destination area, select IP address from the Type drop-down menu, and then enter the IP address of the NSX Load Balancer VM.
Antrea Traceflow will trace the path of the packet till it leaves the Antrea Kubernetes cluster.
As explained in the important note earlier in this documentation, esnure that you all the information (IP address, Protocol Type, and Destination Port) accurately in the Antrea Traceflow session
- Now, you use the NSX Traceflow feature to trace the packet from a tier-0 gateway interface to the destination VM in the NSX overlay network. Configure the Source in the NSX Traceflow as follows:
- Type: Port/Interface
- Attachment: Edge Uplink
- Port: Select the tier-0 interface from the drop-down menu.
Configure the Destination in the NSX Traceflow as follows:- Type: IP-Mac
- Layer: Layer-3 (Network Layer)
- IP Address: Enter the IP address of the NSX Load Balancer VM.
The trace result will display how the NSX Load Balancer chooses a VM as the destination, and what path the packet has taken from the NSX Load Balancer to the destination VM.