Performing a Packet Capture

1 hour
  • 4 Learning Objectives

About this Hands-on Lab

In this learning activity, you will need to perform a packet capture of web requests from `Client1` ( to `Server1` ( and the requisite responses. The resulting file should only contain this data.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Install tcpdump

You will need to install tcpdump:

# yum install tcpdump

Begin the Packet Capture

You will want to apply a capture filter so that you’re only getting web requests:

# tcpdump port 80 -w capture.pcap

Generate Some Traffic

Since this isn’t a public web server, you will need to generate some traffic from Client1 ( to Server1 ( This needs to be done while the tcpdump capture is running.

Cancel the Capture and View the File

After you’ve generated some requests, you can cancel the running capture and view the file:

tcpdump -r capture.pcap

Move the file to /root/ if it’s not there already.

Additional Resources

You've been asked to obtain evidence of the network latency and response as it pertains to web requests from Client1 to Server1. You are to perform a packet capture of this port 80 traffic, generating the traffic if needed, and provide the results in a file named capture.pcap.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?