logo

How to packet capture leaving/ entering vmnic in vSphere

I was with a GSS Support today troubleshooting NSX issue on one of my engagement. He did a packet trace from ESXi hosts to see if there is traffic leaving/ entering the physical NIC which really nice. This will be helpful in establishing if the issue is somewhere in the environment or not.

Here’s the command

Receive:

pktcap-uw –uplink vmnic0 –capture UplinkRcvKernel -o -| tcpdump-uw -nr –

Send:

pktcap-uw –uplink vmnic0 –capture UplinkSndKernel -o -| tcpdump-uw -nr –

You can grep the result as you see fit.

Enjoy!

  1. I truly wanted to type a brief word to appreciate you for all of the stunning strategies you are giving out at this site. My time intensive internet investigation has finally been paid with good facts to exchange with my two friends. I ‘d claim that we visitors actually are undoubtedly lucky to live in a great community with very many outstanding people with good tips and hints. I feel extremely happy to have seen your entire weblog and look forward to plenty of more thrilling moments reading here. Thanks once more for a lot of things.

Leave a Reply

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.