Packet capture on VMware ESXi. I usually use this in combination with tcpdump-uw
Get the
switchport
ID from esxtop
# pkt cap on switchport, pipe output directly to tcpdump
pktcap-uw --switchport 33557190 -o - | tcpdump-uw -enr - port 67 or port 68 -e -n
# pktcap on switchport, filter on IP
pktcap-uw --switchport 33557190 --ip 10.10.10.10 -o - | tcpdump-uw -enr - port 67 or port 68 -e -n
Note defaults on traffic dir
By default, theΒ pktcap-uwΒ utility captures ingress traffic.