AnsweredAssumed Answered

How to disable random MAC address generation in Kernel

Question asked by Ganesan K on Sep 7, 2018
Latest reply on Sep 11, 2018 by Victor Linnik

Hi,

 

We want to disable random MAC address generation for Ethernet in i.MX6 BSP in our release build so that IEEE allotted MAC number is programmed without fail during product manufacturing. Usually MAC address is programmed in U-boot environment variable "ethaddr". If that variable is not set then random MAC gets generated. In our u-boot build, CONFIG_NET_RANDOM_ETHADDR is not selected but even then random MAC address is getting generated. I am wondering whether Linux kernel generate random MAC address. Is there a way to disable random MAC address generation in kernel? We are using 4.9 version.

 

Regards,

Ganesan. K

Outcomes