esp-idf icon indicating copy to clipboard operation
esp-idf copied to clipboard

Setting an ETH manufacturer (IDFGH-12622)

Open XavierPellow opened this issue 2 years ago • 1 comments

Answers checklist.

  • [X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • [X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • [X] I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

Is it possible to set the manufacturer of an ESP32-S3 connected via ETH, such that it shows up when doing an arp-scan?

XavierPellow avatar Apr 16 '24 06:04 XavierPellow

You mean the vendor prefix of the MAC address? Please check this example (S3 with SPI Ethernet)

https://github.com/espressif/esp-idf/blob/d4cd437ede613fffacc06ac6d6c93a083829022f/examples/ethernet/basic/components/ethernet_init/ethernet_init.c#L263-L270

where we use the locally administered OUI range, you can supply your own manufacturer's reserved address.

david-cermak avatar May 02 '24 15:05 david-cermak

I did some more research as I didn't fully understand what I was asking!

For anybody else's sake who finds this (feel free to add/correct anything):

  • MAC addresses are typically allocated by IEEE
  • When performing an ARP scan - the name returned is the name allocated by IEEE, ESP does NOT have control over this
  • Read here for more info https://standards.ieee.org/products-programs/regauth/

XavierPellow avatar May 29 '24 00:05 XavierPellow