How to change mac address?

hey there. just installed openwrt for my xiaomi router ( i have main router from provider and connected xiaomi for him before my PC ) so i want to change xiaomi mac address , but when i go to network>interfaces>devices>br-lan configure>paste random mac address its just shutting down my connection until i restart xiaomi router manually . How to change it ? maybe i should configure openwrt or use some special mac address?

Why do you want a random MAC on the LAN side ?

1 Like
  • What's the first 3 hextets of the MAC?
  • When you restart, does it have the new MAC?

Yes in particular the first byte of a MAC must be an even number (bit 0 = 0) or it is a broadcast mac which can't be used on an interface. The other 47 bits can be random, though it best complies with standards to also have bit 1 = 1.

3 Likes

trying to unban in one game :smiley:

  1. CC:D8:43
  2. No

CC:D8:43 first 3 hextets . Can u explain one more time ? im dumb my bad

It is in hex, but the first sets have reserved addresses kind of like IPv4 has lan addresses and if you get the beginning wrong it won't work.

*fumbles for coffee

CC is a legitimate address though. It should work.
Changing the first two to CE sets the "locally administered bit" so it is a real "locally determined" address which you can use without any conflict with factory MACs. CC:D8:43 is registered to Xiaomi company-- anyone can look that up and assume that you have an Xiaomi router.

My bad for not double checking the suggested MAC against the used MAC.
I assumed the used MAC was determined to be local or random based on the output.

:spiral_notepad:

I got lost:
There are three MAC issue threads open at the moment and I thought there were two.