How to capture packets using Wireshark on SMB router or switch

ฐานความรู้
คำถามที่พบบ่อย
07-23-2024
2329

Introduction

Packets capture and analysis are very important for us to troubleshoot when some problems occur such as the router can’t obtain IP from ISP, the client can’t receive multicast packets, etc. This document will introduce how to capture packets using Wireshark in SMB router or switch.

Prerequisites

  1. Wireshark Software

Wireshark is available at https://www.wireshark.org. It’s a free and powerful sniffing and analyzing software.

  1. PC with Ethernet port

Typical Packet Capturing Topology

Note: Connect PC to SMB router or switch directly.

Procedures

  1. Download and install Wireshark on your PC.
  2. Connect PC to the SMB router or switch directly.
  3. Set Port Mirror for PC and the port you want to capture packets.
  1. SMB router

Input the IP address to the address bar in the web browser and you will visit the GUI of the SMB router.

After logging into the page, go to Network-Switch-Mirror, enable Port Mirror, select the port connecting to your PC in the Mirroring Port and the port you want to capture packets in the Mirrored Port, click Save.

  1. SMB switch

Input the IP address to the address bar in the web browser and you will visit the GUI of the SMB switch.

After logging into the page, go to MAINTENANCE-Mirroring, click Edit, select the port connecting to your PC in Destination Port Config and enable Ingress and Egress option in the port you want to capture packets in Source Interface Config, click Apply.

  1. Run Wireshark, select the interface you connect to SMB router or switch.

Apply the display filter

Since the router/switch is forwarding packets constantly, we may need to apply some display filter to filter out the packets we are interested in.

For example,

IP address: ip.addr==192.168.0.1, 8.8.8.8, etc.

UDP port: udp.port==29810, 4500, etc.

TCP port: tcp.port==443, 53, etc.

Protocol: IGMP, DHCP, ISAKMP, etc.

โปรดให้คะแนนเอกสารนี้

เอกสารที่เกี่ยวข้อง

How to Capture Wireless Packets via EAP and Omada Controller

คู่มือการกำหนดค่า
09-24-2025
1417

How to configure remote management on SMB router using the new GUI

คู่มือการกำหนดค่า
06-27-2022
1805

How to Disable NAT on Omada Gateway

คู่มือการกำหนดค่า
06-25-2025
5128

How to configure Voice VLAN on Omada Switches using Omada Controller

คู่มือการกำหนดค่า
VLAN
11-19-2024
17107