DEV Community

Jun wu
Jun wu

Posted on

Capture VLAN tag with wireshark

Wireshark is widely used for Ethernet communication development.I have some projects need testing the Ethernet packets with & without VLAN tag. In this case, we need consider the following conditions for validation.

  1. The publisher send the packets with/without VLAN tag
  2. The Ethernet Switch can be setup to keep/remove the VLAN tag
  3. The subscriber may see / not see the VLAN tag depend on the OS and driver configuration.

Typically wireshark is used as a validation tool. Here is the link from wireshark
https://wiki.wireshark.org/CaptureSetup/VLAN

My environment is windows + USB3 Ethernet Adapter (ASIX AX88179), there is an solution from the vendor to capture/keep VLAN tag in the driver:

Please set the "Packet Priority & VLAN" parameter of ASIX USB to LAN Windows drivers to "Packet Priority & VLAN Disable" to capture the VLAN tagged packets on WireShark.

Image description

Top comments (0)