Change the MAC address on Raspberry Pi

rpi-spoof-mac-address

As you know, the MAC (Media Access Control) address is the unique identifier of a network interface.

On any personal computer running Linux, it can be temporarily altered with the following commands:


# ifconfig eth0 down
# ifconfig eth0 hw ether 02:01:02:03:04:08
# ifconfig eth0 up
Change MAC address with the ifconfig command

I've read at O'Brien's blog a way to change it semi-permanently on your Raspberry Pi. Simply add the following line to the /boot/cmdline.txt file at the end:


smsc95xx.macaddr=xx:xx:xx:xx:xx:xx

Where we 'll replace xx: xx: xx: xx: xx: xx: xx with the new address MAC that we want.

Link: obrienlabs.net > Raspberry Pi – How to spoof MAC address


We request your permission to obtain statistical data on its navigation on this website. If you continue to browse we consider to accept the use of cookies. OK | More Information