---
title: "ESP32 SDK(M5Stack)+W5500 Ethernet(LAN Base) (1. Basic Example DHCP)"
url: "https://maker.wiznet.io/matthew/projects/ESP32-SDKM5StackW5500-EthernetLAN-Base-1-Basic-Example-DHCP/"
markdown_url: "https://maker.wiznet.io/matthew/projects/ESP32-SDKM5StackW5500-EthernetLAN-Base-1-Basic-Example-DHCP/md"
type: "UCC: User Created Content"
author: "matthew"
author_url: "https://maker.wiznet.io/matthew/"
original_author: "matthew"
original_url: "https://blog.naver.com/yusanghyun26/222390275245"
published: "2021-06-09"
language: "en"
hardware: ["M5Stack Core", "LAN BASE", "USB Cable", "LAN Cable"]
likes: 0
views: 708
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# ESP32 SDK(M5Stack)+W5500 Ethernet(LAN Base) (1. Basic Example DHCP)

> ESP32 SDK(M5Stack)+W5500 Ethernet(LAN Base) (1. Basic Example DHCP)

Original author: matthew (source: https://blog.naver.com/yusanghyun26/222390275245)

## Components

- **M5Stack Core** x 1: M5Stack(ESP32)
- **LAN BASE** x 1: W5500 Ethernet Module
- **USB Cable** x 1: Cable
- **LAN Cable** x 1: Cable
- Software: **ESP-IDF**: ESP SDK
- Software: **Python**: Python ([docs](https://docs.python.org/3/))

## Documents and links

- [ESP-idf](https://github.com/espressif/esp-idf/tree/c13afea635adec735435961270d0894ff46eef85) (code): ESP SDK
- [LAN Base](https://docs.m5stack.com/en/base/lan_base?id=schematic) (schematics): M5Stack(ESO32) W5500

## Article

M5Stack is a module with built-in WiFi and BLE communication. However, Ethernet, which is a wired connection, is not supported by itself, and a separate LAN BASE (W5500) must be connected to use Ethernet. This article describes the process of running Ethernet Basic Example using M5Stack and LAN BASE.  Ethernet Basic Example is a basic example of connecting to a Dynamic Host Configuration Protocol (DHCP) server. M5Stack(ESP32) + LAN BASE(W5500) will be assigned an IP after being connected to the DHCP server, and Ping (Packet Internet Grouper) test can be performed with the assigned IP. ![](https://maker.wiznet.io/uploads/2021/06/LAN-Base-소개-1-300x154.png) ![](https://maker.wiznet.io/uploads/2021/06/M5Stack-LANBASE-Pinmap-224x300.png) ![](https://maker.wiznet.io/uploads/2021/06/m5stack-lanbase-결합-300x194.jpg)

---

Source: https://maker.wiznet.io/matthew/projects/ESP32-SDKM5StackW5500-EthernetLAN-Base-1-Basic-Example-DHCP/
