Why mac address was changed on reboot? (netgear r6220 on 18.06.2 eth0)

Dear all

I setup my netgear r6220 router with openwrt v18.6.2.
Everything is work fine but when I reboot the router.
Mac address of eth0 was changed every time.
I need to use static mac address becuase I will refer the mac address to my cloud.

Please advice me how to fix this.

Thank in advance.

If the MAC address is changing, then there is potentially a problem with the port to the R6220. Usually the MAC addresses come from data stored in the router's flash and shouldn't change. It's also possible that your flash has become corrupt or overwritten in that critical spot.

As a work-around, you can set the MAC address in /etc/config/network using macaddr as described at https://openwrt.org/docs/guide-user/base-system/basic-networking#options_valid_for_all_protocol_types

3 Likes