linux modifies mac address method sharing

  • 2020-05-09 19:45:32
  • OfStack


sudo ifconfig wlan0 down&&sudo ifconfig wlan0 hw ether 12:34:56:78:9a:bc & sudo ifconfig wlan0 up

The "wlan0" above is the name of my network card, and mine is obviously a wireless network card. It depends on the device, please use ifconfig-a to view and select. I made up that MAC address, and you can write whichever you want to change.

It should be noted that the MAC address of the network card is written in the hardware, so there is no need to worry that this method will permanently change the MAC address and it cannot be recovered. This modification method will become invalid after restarting, so it needs to be modified once every time.

Also, you can use it in Android


Related articles: