How to Capture Network Packets Using Wireshark

Sometimes Zyxel Support needs a packet capture to find the cause of a network problem.

Wireshark is a free network protocol analyzer that can capture network traffic and save it to a .pcapng file. This file can be shared with Zyxel Support for troubleshooting.

This article explains how to capture packets using Wireshark.

Before You Start

Before you begin, make sure that:

  • Wireshark is installed on your computer.
  • You know which network adapter is connected to the network.
  • You have enough free disk space to save the capture file.

Note: Start the packet capture before you reproduce the issue. This helps capture the complete communication.

Step 1 – Open Wireshark

Open Wireshark.

The main window shows all available network adapters.

Select the adapter that is connected to the network where the problem occurs.

Open Wireshark

Step 2 – Start Packet Capture

Click the Start Capturing Packets button (blue shark fin).

Wireshark will immediately begin capturing network traffic.

Start Capturing Packets

Step 3 – Reproduce the Issue

While Wireshark is running:

  • Perform the action that causes the problem.
  • Wait until the issue appears.
  • Continue capturing for another 10–20 seconds.

This allows Zyxel Support to analyze the traffic before, during, and after the issue.

Step 4 – Stop Packet Capture

Click the Stop Capturing Packets button (red square).

Stop Packet Capture

Step 5 – Save the Capture File

Go to:

File → Save As

Save the file in the default .pcapng format.

Example:

 Save As

 Save As

Useful Display Filters

Display filters help you find specific packets after the capture is finished.

Purpose Filter
One IP address ip.addr == 192.168.1.10
TCP port tcp.port == 443
UDP port udp.port == 500
DNS dns
DHCP bootp
ARP arp
ICMP (Ping) icmp
HTTPS (TLS) tls
HTTP http
IKE VPN isakmp
IPSec ESP esp
  • ip.addr == 192.168.168.48

Capture Filters (Optional)

Capture filters reduce the amount of traffic before the capture starts.

Capture one host:

Examples:

Capture one host:

host 192.168.168.48

Capture one port:

port 443

Capture DNS traffic:

port 53

Important: Capture Filters are different from Display Filters. Capture Filters work before the capture starts, while Display Filters work after the capture is completed.

Best Practices

For the best troubleshooting results:

  • Start the capture before reproducing the issue.
  • Stop the capture 10–20 seconds after the issue occurs.
  • Save the complete capture file.
  • Do not remove packets from the file.
  • Save the file as .pcapng.
  • If possible, note the exact time when the issue occurred.

Articles in this section

Was this article helpful?
0 out of 0 found this helpful
Share

Comments

0 comments

Please sign in to leave a comment.