This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

CONFIG_NET_L2_ETHERNET

Enable Ethernet support

Type: bool

Help

Add support for Ethernet, enabling selecting relevant hardware drivers.
If NET_SLIP_TAP is selected, NET_L2_ETHERNET will enable to fully
simulate Ethernet through SLIP.

Direct dependencies

(BOARD_SAM4E_XPRO && NETWORKING && (SHIELD_ESP_8266 || SHIELD_ESP_8266_ARDUINO || SHIELD_ESP_8266_MIKROBUS)) || (BOARD_FRDM_K64F && IEEE802154 && SHIELD_FRDM_CR20A) || (BOARD_FRDM_K64F && NETWORKING && (SHIELD_INVENTEK_ESWIFI || SHIELD_INVENTEK_ESWIFI_ARDUINO_SPI || SHIELD_INVENTEK_ESWIFI_ARDUINO_UART)) || (BOARD_NUCLEO_F767ZI && NETWORKING && (SHIELD_INVENTEK_ESWIFI || SHIELD_INVENTEK_ESWIFI_ARDUINO_SPI || SHIELD_INVENTEK_ESWIFI_ARDUINO_UART)) || (NETWORKING && SHIELD_LINK_BOARD_ETH) || (NETWORKING && SHIELD_MIKROE_ETH_CLICK) || (NETWORKING && BOARD_ATSAME54_XPRO) || (NETWORKING && BOARD_EFM32GG_SLWSTK6121A) || (NETWORKING && BOARD_EFM32GG_STK3701A) || (NETWORKING && BOARD_FRDM_K64F) || (NETWORKING && BOARD_IP_K66F) || (NETWORKING && BOARD_MIMXRT1020_EVK) || (NETWORKING && BOARD_MIMXRT1024_EVK) || (NETWORKING && (BOARD_MIMXRT1050_EVK || BOARD_MIMXRT1050_EVK_QSPI)) || (NETWORKING && (BOARD_MIMXRT1060_EVK || BOARD_MIMXRT1060_EVK_HYPERFLASH)) || (NETWORKING && BOARD_MIMXRT1064_EVK) || (NETWORKING && BOARD_NUCLEO_F207ZG) || (NETWORKING && BOARD_NUCLEO_F429ZI) || (NETWORKING && BOARD_NUCLEO_F746ZG) || (NETWORKING && BOARD_NUCLEO_F756ZG) || (NETWORKING && BOARD_NUCLEO_F767ZI) || (NETWORKING && BOARD_NUCLEO_H723ZG) || (NETWORKING && BOARD_NUCLEO_H743ZI) || (NETWORKING && (BOARD_NUCLEO_H745ZI_Q_M7 || BOARD_NUCLEO_H745ZI_Q_M4)) || (NETWORKING && BOARD_NUCLEO_H753ZI) || (NETWORKING && BOARD_SAM_E70_XPLAINED) || (NETWORKING && BOARD_SAM_V71_XULT) || (NETWORKING && BOARD_STM32F746G_DISCO) || (NETWORKING && BOARD_STM32F769I_DISCO) || (NETWORKING && (BOARD_STM32H747I_DISCO_M7 || BOARD_STM32H747I_DISCO_M4)) || (NETWORKING && BOARD_NATIVE_POSIX) || (BOARD_SAM4E_XPRO && NETWORKING && (SHIELD_ESP_8266 || SHIELD_ESP_8266_ARDUINO || SHIELD_ESP_8266_MIKROBUS)) || (BOARD_FRDM_K64F && IEEE802154 && SHIELD_FRDM_CR20A) || (BOARD_FRDM_K64F && NETWORKING && (SHIELD_INVENTEK_ESWIFI || SHIELD_INVENTEK_ESWIFI_ARDUINO_SPI || SHIELD_INVENTEK_ESWIFI_ARDUINO_UART)) || (BOARD_NUCLEO_F767ZI && NETWORKING && (SHIELD_INVENTEK_ESWIFI || SHIELD_INVENTEK_ESWIFI_ARDUINO_SPI || SHIELD_INVENTEK_ESWIFI_ARDUINO_UART)) || (NETWORKING && SHIELD_LINK_BOARD_ETH) || (NETWORKING && SHIELD_MIKROE_ETH_CLICK) || (NETWORKING && SOC_SERIES_SAM4E) || NETWORKING

(Includes any dependencies from ifs and menus.)

Defaults

Symbols that select this symbol

Kconfig definitions

At boards/shields/esp_8266/boards/sam4e_xpro.defconfig:8

Included via Kconfig:8Kconfig.zephyr:20boards/shields/esp_8266/Kconfig.defconfig:19

Menu path: (Top)

config NET_L2_ETHERNET
    bool
    default n
    depends on BOARD_SAM4E_XPRO && NETWORKING && (SHIELD_ESP_8266 || SHIELD_ESP_8266_ARDUINO || SHIELD_ESP_8266_MIKROBUS)

At boards/shields/frdm_cr20a/boards/frdm_k64f.defconfig:8

Included via Kconfig:8Kconfig.zephyr:20boards/shields/frdm_cr20a/Kconfig.defconfig:20

Menu path: (Top)

config NET_L2_ETHERNET
    bool
    default n
    depends on BOARD_FRDM_K64F && IEEE802154 && SHIELD_FRDM_CR20A

At boards/shields/inventek_eswifi/boards/frdm_k64f.defconfig:8

Included via Kconfig:8Kconfig.zephyr:20boards/shields/inventek_eswifi/Kconfig.defconfig:14

Menu path: (Top)

config NET_L2_ETHERNET
    bool
    default n
    depends on BOARD_FRDM_K64F && NETWORKING && (SHIELD_INVENTEK_ESWIFI || SHIELD_INVENTEK_ESWIFI_ARDUINO_SPI || SHIELD_INVENTEK_ESWIFI_ARDUINO_UART)

At boards/shields/inventek_eswifi/boards/nucleo_f767zi.defconfig:8

Included via Kconfig:8Kconfig.zephyr:20boards/shields/inventek_eswifi/Kconfig.defconfig:14

Menu path: (Top)

config NET_L2_ETHERNET
    bool
    default n
    depends on BOARD_NUCLEO_F767ZI && NETWORKING && (SHIELD_INVENTEK_ESWIFI || SHIELD_INVENTEK_ESWIFI_ARDUINO_SPI || SHIELD_INVENTEK_ESWIFI_ARDUINO_UART)

At boards/shields/link_board_eth/Kconfig.defconfig:11

Included via Kconfig:8Kconfig.zephyr:20

Menu path: (Top)

config NET_L2_ETHERNET
    bool
    default y
    depends on NETWORKING && SHIELD_LINK_BOARD_ETH

At boards/shields/mikroe_eth_click/Kconfig.defconfig:12

Included via Kconfig:8Kconfig.zephyr:20

Menu path: (Top)

config NET_L2_ETHERNET
    bool
    default y
    depends on NETWORKING && SHIELD_MIKROE_ETH_CLICK

At boards/arm/atsame54_xpro/Kconfig.defconfig:13

Included via Kconfig:8Kconfig.zephyr:22

Menu path: (Top)

config NET_L2_ETHERNET
    bool
    default y
    depends on NETWORKING && BOARD_ATSAME54_XPRO

At boards/arm/efm32gg_slwstk6121a/Kconfig.defconfig:35

Included via Kconfig:8Kconfig.zephyr:22

Menu path: (Top)

config NET_L2_ETHERNET
    bool
    default y
    depends on NETWORKING && BOARD_EFM32GG_SLWSTK6121A

At boards/arm/efm32gg_stk3701a/Kconfig.defconfig:31

Included via Kconfig:8Kconfig.zephyr:22

Menu path: (Top)

config NET_L2_ETHERNET
    bool
    default y
    depends on NETWORKING && BOARD_EFM32GG_STK3701A

At boards/arm/frdm_k64f/Kconfig.defconfig:29

Included via Kconfig:8Kconfig.zephyr:22

Menu path: (Top)

config NET_L2_ETHERNET
    bool
    default y if !MODEM
    depends on NETWORKING && BOARD_FRDM_K64F

At boards/arm/ip_k66f/Kconfig.defconfig:25

Included via Kconfig:8Kconfig.zephyr:22

Menu path: (Top)

config NET_L2_ETHERNET
    bool
    default y
    depends on NETWORKING && BOARD_IP_K66F

At boards/arm/mimxrt1020_evk/Kconfig.defconfig:20

Included via Kconfig:8Kconfig.zephyr:22

Menu path: (Top)

config NET_L2_ETHERNET
    bool
    default y
    depends on NETWORKING && BOARD_MIMXRT1020_EVK

At boards/arm/mimxrt1024_evk/Kconfig.defconfig:23

Included via Kconfig:8Kconfig.zephyr:22

Menu path: (Top)

config NET_L2_ETHERNET
    bool
    default y
    depends on NETWORKING && BOARD_MIMXRT1024_EVK

At boards/arm/mimxrt1050_evk/Kconfig.defconfig:36

Included via Kconfig:8Kconfig.zephyr:22

Menu path: (Top)

config NET_L2_ETHERNET
    bool
    default y
    depends on NETWORKING && (BOARD_MIMXRT1050_EVK || BOARD_MIMXRT1050_EVK_QSPI)

At boards/arm/mimxrt1060_evk/Kconfig.defconfig:43

Included via Kconfig:8Kconfig.zephyr:22

Menu path: (Top)

config NET_L2_ETHERNET
    bool
    default y
    depends on NETWORKING && (BOARD_MIMXRT1060_EVK || BOARD_MIMXRT1060_EVK_HYPERFLASH)

At boards/arm/mimxrt1064_evk/Kconfig.defconfig:42

Included via Kconfig:8Kconfig.zephyr:22

Menu path: (Top)

config NET_L2_ETHERNET
    bool
    default y
    depends on NETWORKING && BOARD_MIMXRT1064_EVK

At boards/arm/nucleo_f207zg/Kconfig.defconfig:13

Included via Kconfig:8Kconfig.zephyr:22

Menu path: (Top)

config NET_L2_ETHERNET
    bool
    default y
    depends on NETWORKING && BOARD_NUCLEO_F207ZG

At boards/arm/nucleo_f429zi/Kconfig.defconfig:13

Included via Kconfig:8Kconfig.zephyr:22

Menu path: (Top)

config NET_L2_ETHERNET
    bool
    default y
    depends on NETWORKING && BOARD_NUCLEO_F429ZI

At boards/arm/nucleo_f746zg/Kconfig.defconfig:13

Included via Kconfig:8Kconfig.zephyr:22

Menu path: (Top)

config NET_L2_ETHERNET
    bool
    default y
    depends on NETWORKING && BOARD_NUCLEO_F746ZG

At boards/arm/nucleo_f756zg/Kconfig.defconfig:13

Included via Kconfig:8Kconfig.zephyr:22

Menu path: (Top)

config NET_L2_ETHERNET
    bool
    default y
    depends on NETWORKING && BOARD_NUCLEO_F756ZG

At boards/arm/nucleo_f767zi/Kconfig.defconfig:13

Included via Kconfig:8Kconfig.zephyr:22

Menu path: (Top)

config NET_L2_ETHERNET
    bool
    default y
    depends on NETWORKING && BOARD_NUCLEO_F767ZI

At boards/arm/nucleo_h723zg/Kconfig.defconfig:13

Included via Kconfig:8Kconfig.zephyr:22

Menu path: (Top)

config NET_L2_ETHERNET
    bool
    default y
    depends on NETWORKING && BOARD_NUCLEO_H723ZG

At boards/arm/nucleo_h743zi/Kconfig.defconfig:13

Included via Kconfig:8Kconfig.zephyr:22

Menu path: (Top)

config NET_L2_ETHERNET
    bool
    default y
    depends on NETWORKING && BOARD_NUCLEO_H743ZI

At boards/arm/nucleo_h745zi_q/Kconfig.defconfig:17

Included via Kconfig:8Kconfig.zephyr:22

Menu path: (Top)

config NET_L2_ETHERNET
    bool
    default y
    depends on NETWORKING && (BOARD_NUCLEO_H745ZI_Q_M7 || BOARD_NUCLEO_H745ZI_Q_M4)

At boards/arm/nucleo_h753zi/Kconfig.defconfig:13

Included via Kconfig:8Kconfig.zephyr:22

Menu path: (Top)

config NET_L2_ETHERNET
    bool
    default y
    depends on NETWORKING && BOARD_NUCLEO_H753ZI

At boards/arm/sam_e70_xplained/Kconfig.defconfig:35

Included via Kconfig:8Kconfig.zephyr:22

Menu path: (Top)

config NET_L2_ETHERNET
    bool
    default y
    depends on NETWORKING && BOARD_SAM_E70_XPLAINED

At boards/arm/sam_v71_xult/Kconfig.defconfig:38

Included via Kconfig:8Kconfig.zephyr:22

Menu path: (Top)

config NET_L2_ETHERNET
    bool
    default y
    depends on NETWORKING && BOARD_SAM_V71_XULT

At boards/arm/stm32f746g_disco/Kconfig.defconfig:13

Included via Kconfig:8Kconfig.zephyr:22

Menu path: (Top)

config NET_L2_ETHERNET
    bool
    default y
    depends on NETWORKING && BOARD_STM32F746G_DISCO

At boards/arm/stm32f769i_disco/Kconfig.defconfig:17

Included via Kconfig:8Kconfig.zephyr:22

Menu path: (Top)

config NET_L2_ETHERNET
    bool
    default y
    depends on NETWORKING && BOARD_STM32F769I_DISCO

At boards/arm/stm32h747i_disco/Kconfig.defconfig:17

Included via Kconfig:8Kconfig.zephyr:22

Menu path: (Top)

config NET_L2_ETHERNET
    bool
    default y
    depends on NETWORKING && (BOARD_STM32H747I_DISCO_M7 || BOARD_STM32H747I_DISCO_M4)

At boards/posix/native_posix/Kconfig.defconfig:20

Included via Kconfig:8Kconfig.zephyr:22

Menu path: (Top)

config NET_L2_ETHERNET
    bool
    default y if !NET_LOOPBACK && !NET_TEST
    depends on NETWORKING && BOARD_NATIVE_POSIX

At boards/shields/esp_8266/boards/sam4e_xpro.defconfig:8

Included via Kconfig:8Kconfig.zephyr:22boards/shields/esp_8266/Kconfig.defconfig:19

Menu path: (Top)

config NET_L2_ETHERNET
    bool
    default n
    depends on BOARD_SAM4E_XPRO && NETWORKING && (SHIELD_ESP_8266 || SHIELD_ESP_8266_ARDUINO || SHIELD_ESP_8266_MIKROBUS)

At boards/shields/frdm_cr20a/boards/frdm_k64f.defconfig:8

Included via Kconfig:8Kconfig.zephyr:22boards/shields/frdm_cr20a/Kconfig.defconfig:20

Menu path: (Top)

config NET_L2_ETHERNET
    bool
    default n
    depends on BOARD_FRDM_K64F && IEEE802154 && SHIELD_FRDM_CR20A

At boards/shields/inventek_eswifi/boards/frdm_k64f.defconfig:8

Included via Kconfig:8Kconfig.zephyr:22boards/shields/inventek_eswifi/Kconfig.defconfig:14

Menu path: (Top)

config NET_L2_ETHERNET
    bool
    default n
    depends on BOARD_FRDM_K64F && NETWORKING && (SHIELD_INVENTEK_ESWIFI || SHIELD_INVENTEK_ESWIFI_ARDUINO_SPI || SHIELD_INVENTEK_ESWIFI_ARDUINO_UART)

At boards/shields/inventek_eswifi/boards/nucleo_f767zi.defconfig:8

Included via Kconfig:8Kconfig.zephyr:22boards/shields/inventek_eswifi/Kconfig.defconfig:14

Menu path: (Top)

config NET_L2_ETHERNET
    bool
    default n
    depends on BOARD_NUCLEO_F767ZI && NETWORKING && (SHIELD_INVENTEK_ESWIFI || SHIELD_INVENTEK_ESWIFI_ARDUINO_SPI || SHIELD_INVENTEK_ESWIFI_ARDUINO_UART)

At boards/shields/link_board_eth/Kconfig.defconfig:11

Included via Kconfig:8Kconfig.zephyr:22

Menu path: (Top)

config NET_L2_ETHERNET
    bool
    default y
    depends on NETWORKING && SHIELD_LINK_BOARD_ETH

At boards/shields/mikroe_eth_click/Kconfig.defconfig:12

Included via Kconfig:8Kconfig.zephyr:22

Menu path: (Top)

config NET_L2_ETHERNET
    bool
    default y
    depends on NETWORKING && SHIELD_MIKROE_ETH_CLICK

At soc/arm/atmel_sam/sam4e/Kconfig.defconfig.series:40

Included via Kconfig:8Kconfig.zephyr:27soc/arm/atmel_sam/Kconfig.defconfig:6

Menu path: (Top)

config NET_L2_ETHERNET
    bool
    default y
    depends on NETWORKING && SOC_SERIES_SAM4E

At subsys/net/l2/ethernet/Kconfig:4

Included via Kconfig:8Kconfig.zephyr:44subsys/Kconfig:39subsys/net/Kconfig:85subsys/net/l2/Kconfig:71

Menu path: (Top) → Sub Systems and OS Services → Networking → Link layer and IP networking support → Link layer options

menuconfig NET_L2_ETHERNET
    bool "Enable Ethernet support"
    depends on NETWORKING
    help
      Add support for Ethernet, enabling selecting relevant hardware drivers.
      If NET_SLIP_TAP is selected, NET_L2_ETHERNET will enable to fully
      simulate Ethernet through SLIP.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)