top of page

How to change MAC Address?

MAC Address stands for Media Access Control. It is a unique address specific to a device set by the device manufacturer. No two devices in the world have the same MAC Address. Even if you connect the device to another computer, the MAC address won’t change. It is used to identify devices within the network and transfer packets based on the MAC address.

Reasons you should change MAC Address

Changing MAC address will make you anonymous on the network, allow you to impersonate other devices, and will allow you to bypass certain restrictions.

Changing the MAC Address

  1. Let’s check the network devices attached to my network. Run the following command :

$ ifconfig

The output should look like this:

We can see 2 network devices lo and wlan0 We are interested to change the MAC address of our wi-fi adapter which is wlan0 . In wlan0 we see ether 00:11:22:33:44:55 This is our MAC address.

Before changing we need to

  1. bring the wifi interface down.

  2. Change the MAC address

  3. bring the wifi interface up

Run the following set of commands

$ ifconfig wlan0 down
$ ifconfig wlan0 hw ether 22:33:44:55:00:11
$ ifconfig wlan0 up

Now if I run ifconfig we can see that my MAC address has been changed to the MAC address we specified.

Note: The MAC address will revert back to the original MAC address set by the manufacturer when we restart because we are only changing the MAC address in network memory and not the physical MAC address.
This blog was originally published in the personal blog website of Gourav :


Related Articles


Let's Get

  • alt.text.label.Twitter
  • alt.text.label.LinkedIn
  • 25231
Subscribe to our NewsLetter

Join our mailing list to get a notification whenever a new blog is published. Don't worry we will not spam you.

bottom of page