# Ethernet

## {{@218#bkmrk-open-iot-and-iiot-ga}}


Link to repositories:

- [C](https://github.com/Redisage/PAC-ESP32/tree/master/C_examples/ethernet_ping)
- [MicroPython](https://github.com/Redisage/ESP32_Open_IoT_and_IIoT_Gateways_examples/tree/master/uPython_examples/ethernet_ping)

### Connection

ETHERNET adapter should be connected to WLAN with a RJ45 cable.

[![image-33.webp](https://doc.redisage.com/uploads/images/gallery/2024-06/scaled-1680-/image-33.webp)](https://doc.redisage.com/uploads/images/gallery/2024-06/image-33.webp)

### Description

This example demonstrates basic usage of ETHERNET driver. After flashing the CGE2 will try to obtain an IP address in a network it will be connected to. Once it will be done it will be possible to ping the device in this network. This example is a good base for developing own network solutions.

### Console output

[![image.png](https://doc.redisage.com/uploads/images/gallery/2024-06/scaled-1680-/W6Yimage.png)](https://doc.redisage.com/uploads/images/gallery/2024-06/W6Yimage.png)

[![image.png](https://doc.redisage.com/uploads/images/gallery/2024-06/scaled-1680-/qO5image.png)](https://doc.redisage.com/uploads/images/gallery/2024-06/qO5image.png)