vmk_ping
Validate MTU path from a VMkernel adapter using DF-bit ping; oversized packets reveal path MTU limits.
Instructions
[READ] DF-bit-capable ping sourced from a host vmk - MTU path validation.
Runs esxcli network diag ping on the ESXi host through the vSphere API
(no host SSH). df=True sets Don't-Fragment so an oversized packet FAILS
instead of fragmenting - that failure is the diagnostic:
df=True size=1572 proves a >=1600 MTU path (overlay/TEP floor)
df=True size=8972 proves full jumbo (9000 minus 28 bytes overhead) A too-big result reports 'Message too long' in the fault field rather than erroring - read success + fault together.
Returns: Dict with request, success, and summary (transmitted/received/loss/ rtt) or fault (the esxcli failure text). Errors return "error" + hint.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| df | No | True sets the Don't-Fragment bit (the MTU probe mode). | |
| size | No | ICMP payload bytes (default 56). Path proves size+28 MTU. | |
| count | No | Packets to send (default 3, max 60). | |
| target | No | vCenter target name from config.yaml; omit to use the default target. | |
| dest_ip | Yes | IPv4 address to ping. | |
| netstack | No | Optional netstack instance (e.g. "vxlan" for real TEP vmks). | |
| host_name | Yes | ESXi host to source the ping from. | |
| source_vmk | Yes | VMkernel device to source from (e.g. "vmk2"). |