---
title: "VLAN Testing Project (Based on W5500)"
url: "https://maker.wiznet.io/irina/projects/vlan-testing-project-based-on-w5500/"
markdown_url: "https://maker.wiznet.io/irina/projects/vlan-testing-project-based-on-w5500/md"
type: "WCC: WIZnet Created Content"
author: "irina"
author_url: "https://maker.wiznet.io/irina/"
published: "2024-11-29"
language: "en"
hardware: ["WIZnet W55RP20-EVB-Pico"]
likes: 0
views: 4372
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# VLAN Testing Project (Based on W5500)

> This project tests VLAN tagging and handling in MACRAW using the W5500 (Ethernet chip). It employs Python for data processing, Wireshark for packet capture.

## Components

- **WIZnet W55RP20-EVB-Pico** x 1 ([docs](https://wiznet.io/products/powered-by-raspberry-pi/w55rp20-evb-pico))

## Documents and links

- [VLAN_W5500](https://github.com/irinakim12/VLAN_W5500.git) (code)

## Article

## **VLAN Testing Project (Based on W5500)**

![](https://maker.wiznet.io/upload/ckeditor5/19234754%5F1732894746%2EPNG)

This project tests VLAN tagging and handling in **MACRAW mode** using the W5500 (Ethernet chip). It employs Python for data processing, Wireshark for packet capture

---

### **📋 Table of Contents**

- VLAN Testing Project (Based on W5500)
  - 📋 Table of Contents
  - 🌟 Introduction
  - 📂 Project Overview
  - 🛠️ Setup
  - 🚀 How to Use
  - 📊 Results

---

### **🌟 Introduction**

This project demonstrates how to send and receive VLAN-tagged Ethernet frames using the W5500 Ethernet chip in **MACRAW mode**. The workflow involves:

- Sending and receiving Ethernet frames with VLAN tags.

- Analyzing network traffic with Wireshark.

- Capturing and reviewing hardware signals using an oscilloscope.

---

### **📂 Project Overview**

The project includes the following materials:

**Wireshark Capture Files**:

- `.png` files for analyzing network traffic.

- Example file: `data/vlan_test_capture.png`.

**Python Scripts**:

- Scripts for generating data frames and controlling the W5500.

- Example script: `./py/vlan.py`.

---

### **🛠️ Setup**

Follow these steps to set up the project:

**Install Python**:

- Python 3.7 or later is required.

- Install the required packages:

```plaintext
pip install pyserial scapy
```

**Install Wireshark**:

- Download and install Wireshark from the [official website](https://www.wireshark.org/).

---

### **🚀 How to UseRun the Python Script**:

- Generate VLAN-tagged frames and send them using the W5500:

```plaintext
python ./py/vlan.py
```

![](https://maker.wiznet.io/upload/ckeditor5/19234754%5F1732894771%2EPNG)

#### A VLAN packet Frame

#### ![](https://maker.wiznet.io/upload/ckeditor5/19234754%5F1732894933%2EPNG) **Analyze with Wireshark**:

- Open Wireshark and capture packets from your network interface.

- Apply a VLAN filter (`0x8100`) to isolate VLAN-tagged packets:

```plaintext
vlan
```

---

### **📊 Results**

1. **Wireshark Capture**:
  - Below is an example of VLAN-tagged packets captured with Wireshark:
   ![](https://maker.wiznet.io/upload/ckeditor5/19234754%5F1732894958%2EPNG)

---

Source: https://maker.wiznet.io/irina/projects/vlan-testing-project-based-on-w5500/
