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
What is the main purpose of a packet analyzer such as Wireshark?
- To configure VLANs on a switch
- To block malicious traffic
- To capture and inspect the packets travelling on a network
- 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.
Which statements about Wireshark are true?
- A capture filter limits which packets are recorded
- A display filter permanently deletes the hidden packets from the capture
- A saved capture file can be reopened later for analysis
- A capture file can only be opened on the computer that created it
- 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.
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.
