CONFIG_ETH_NATIVE_POSIX_MAC_ADDR

MAC address for the interface

Type: string

Help

Specify a MAC address for the ethernet interface in the form of six hex 8-bit chars separated by colons (e.g.: aa:33:cc:22:e2:c0). The default is an empty string, which means the code will make 00:00:5E:00:53:XX, where XX will be random.

Direct dependencies

!ETH_NATIVE_POSIX_RANDOM_MAC && ETH_NATIVE_POSIX && NET_L2_ETHERNET

(Includes any dependencies from if’s and menus.)

Kconfig definition

At drivers/ethernet/Kconfig.native_posix:99

Included via Kconfig:10Kconfig.zephyr:35drivers/Kconfig:18drivers/ethernet/Kconfig:34

Menu path: (top menu) → Device Drivers → Ethernet Drivers → Native Posix Ethernet driver

config ETH_NATIVE_POSIX_MAC_ADDR
    string
    prompt "MAC address for the interface" if !ETH_NATIVE_POSIX_RANDOM_MAC && ETH_NATIVE_POSIX && NET_L2_ETHERNET
    default "" if !ETH_NATIVE_POSIX_RANDOM_MAC && ETH_NATIVE_POSIX && NET_L2_ETHERNET
    depends on !ETH_NATIVE_POSIX_RANDOM_MAC && ETH_NATIVE_POSIX && NET_L2_ETHERNET
    help
      Specify a MAC address for the ethernet interface in the form of
      six hex 8-bit chars separated by colons (e.g.:
      aa:33:cc:22:e2:c0).  The default is an empty string, which
      means the code will make 00:00:5E:00:53:XX, where XX will be
      random.

(Definitions include propagated dependencies, including from if’s and menus.)