Media Access Control address (MAC address) is a unique identifier assigned to network adapters or network interface cards.
Usually, they are pre-written by the manufacturer and encodes the manufacturer’s registered identification number. Although MAC address is intended to be a permanent and unique identification code, it is possible to change the MAC address of most of the network hardwares that are available today. This process is known as MAC Spoofing.
In Linux systems, it is possible to set a temporary MAC address for the hardware with 3 easy steps. The address set by this method will be changed to the original code after rebooting the system.
1. Stop the network card.
$ sudo ifconfig eth0 down
here eth0 is the ethernet network controller.
2. Set a new MAC address.
$ sudo ifconfig eth0 hw ether @@:@@:@@:@@:@@:@@
replace the ‘@’ symbols with new MAC address.
3. Start the network card again.
$ sudo ifconfig eth0 up
Type ifconfig to display network adapter properties.