Loading

×Sorry to interrupt
CSS Error

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

Skip to main content

My Subscriptions

Loading

Knowledge Base

Troubleshooting network issues by capturing and sniffing network traffic via tcpdump (1004090)

Last Updated: 4/5/2011Categories: Total Views: 26437Language:
English

1 like this article

Subscribe to get an email
newsletter with new updates

1 people found this helpful Please provide article feedback:

Symptoms

The following ESX network issues can be resolved by sniffing TCP/IP messages:

VMware VMotion fails at 10%

Connection fails to certain host and networks

Sessions to network services fail

Analyzing bandwidth and network services communication

cannot-vmotion connect-esx connection-fails-esx connection-fails-network connect-vm network-connection network-performance

Purpose

The following describes the basic concepts of monitoring network traffic:

To troubleshoot many network related issue, the tcpdump can be utilized to capture TCP/IP traffic.

Analyzing network traffic requires advance understanding of TCP/IP stack protocol to make sense of hidden TCP/IP messages captured.

This article emphasizes capturing and sniffing TCP/IP network traffic on ESX host.

The ESX 3.x Service Console is equipped with the utilities esxnet-support and tcpdump for network troubleshooting.

To capture TCP/IP packets in and out of an ESX host:

esxnet-support: This ESX script utilizes the tcpdump utility to create sniffer interface and capture ESX network traffic and generate tcpdump.gz file, to be analyzed for later.

tcpdump: This utility is shipped with ESX and runs at the Service Console (SC) TCP/IP stack. tcpdump is a command line tool used at root access level of ESX console connection for real time capturing to be displayed on the console screen.

Resolution

Note: esxnet-support creates a dedicated portgroup and interface, but due to script errors, it may fail. If it fails, you must manually create a port group with proper security settings to accommodate esxnet-support script execution. For more information, see Capturing virtual switch traffic with tcpdump and other utilities (1000880).

The following describes command line utilization of esxnet-support:

Run the following command:

esxnet-support trace –z –p [port_name]

Note: VMware recommends setting up a sniffer port on the vSwitch.

Create a Service console port and name it cos_tcpdump .

Run the following command as root on the ESX console:

esxnet-support trace –z –p cos_tcpdump

Press Ctrl+C to stop sniffer script.

Note: This generates a dump file in the directory it was executed.

The script esxnet-support generates the *.tcpdump.gz file. Utilize gunzip to extract the *.tcpdump.gz file.

Use Network Protocol Analyzer utilities (such as Wireshark) to open and view the tcpdump file.

Note: VMware does not endorse or recommend any particular third party software utility, nor is the list above meant to be exhaustive.

Run the following command to view tcpdump from the console command line:

tcpdump –i [interface name]

Related Information

For related information, see Verifying gateway IP connection using the tcpdump command (1008017).

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
English

Attachments

Additional Resources

No results for undefined

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware ESX Server

Related Versions:

VMware ESX Server 3.0.x

Take Our Survey

Was this article helpful?

YES

NO

Copyright © 2005-2024 Broadcom. All Rights Reserved. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.

Terms of Use

Your California Privacy Rights

Privacy

Accessibility

Cookie Settings

Support Assistant