Bitzu

100-150 CCST ยท Troubleshooting and device commands

Packet capture with Wireshark

Purpose of a packet analyzer, starting a capture on an interface, capture and display filters, and saving and opening .pcap files.

Key points

  • Wireshark is a packet analyzer: it captures frames on a chosen interface and decodes them protocol by protocol.
  • A capture filter limits what is recorded while capturing; a display filter only hides packets already captured.
  • Captures can be saved to a file (such as .pcap or .pcapng) and opened later, on any machine with Wireshark.

Source: https://www.wireshark.org/docs/wsug_html_chunked/ChCapCaptureFilterSection.html

Practice questions

Single choice

What is the main purpose of a packet analyzer such as Wireshark?

  1. To configure VLANs on a switch
  2. To block malicious traffic
  3. To capture and inspect the packets travelling on a network
  4. To assign IP addresses to clients
Show answer

Answer: C. To capture and inspect the packets travelling on a network

It captures and decodes network traffic so you can inspect it. It does not configure devices or block threats.

Select all that apply

Which statements about Wireshark are true?

  1. A capture filter limits which packets are recorded
  2. A display filter permanently deletes the hidden packets from the capture
  3. A saved capture file can be reopened later for analysis
  4. A capture file can only be opened on the computer that created it
  5. A display filter changes which captured packets are shown
Show answer

Answer: A. A capture filter limits which packets are recorded, C. A saved capture file can be reopened later for analysis, E. A display filter changes which captured packets are shown

Capture filters limit what is recorded, display filters only change what you see, and saved files can be reopened. A capture cannot be opened only on the machine that made it.

True or false

Applying a display filter stops Wireshark from capturing the packets that do not match it.

Show answer

Answer: False

False. A display filter only hides non-matching packets; they are still captured and saved. Only a capture filter prevents recording.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More 100-150 CCST topics in this module