Skip to content

esp_eth_set_mac does nothing. Can't change ESP's MAC Address #5926

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
GeorgeFlorian opened this issue Nov 24, 2021 · 4 comments
Closed

esp_eth_set_mac does nothing. Can't change ESP's MAC Address #5926

GeorgeFlorian opened this issue Nov 24, 2021 · 4 comments
Labels
Resolution: Duplicate Issue is a duplicate of another issue

Comments

@GeorgeFlorian
Copy link

GeorgeFlorian commented Nov 24, 2021

Hardware:

Board: ESP32 EVB
IDE name: PlatformIO Core, version 5.2.3
PSRAM enabled: no
Computer OS: Windows 10

Description:

Hello.
I have an ESP32-EVB with the following MACs:
WiFi Mac: 7c-9e-bd-30-2d-a8
ETH Mac: 7c-9e-bd-30-2d-ab

I'm trying to set the MAC of the ETH interface the same as the WiFi interface using the following code:

    ETH.begin();

    uint8_t mac[] = {};
    esp_wifi_get_mac(WIFI_IF_STA, &mac[0]);
    esp_eth_set_mac(&mac[0]);
    Serial.print("ETH MAC: ");
    Serial.println(ETH.macAddress());

This prints the right MAC, which is the same as the WiFi's MAC (7c-9e-bd-30-2d-a8), but using arp -a in cmd or looking in the router's device list gives me the original ETH MAC: 7c-9e-bd-30-2d-ab

How do I properly change the ETH MAC Address ?

@GeorgeFlorian
Copy link
Author

Sooo ? Should it work or not ?

@smuellener
Copy link
Contributor

@GeorgeFlorian Have you found a solution for this? Thank you

@smuellener
Copy link
Contributor

Possible fix: #6458

@VojtechBartoska
Copy link
Contributor

Thanks for linking this @smuellener. Closing this one as duplicate and @GeorgeFlorian please follow mentioned issue above as there is more extensive description and also PR. If it will be needed, you can reopen this issue.

@VojtechBartoska VojtechBartoska added the Resolution: Duplicate Issue is a duplicate of another issue label Mar 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Duplicate Issue is a duplicate of another issue
Projects
None yet
Development

No branches or pull requests

3 participants