macchanger

Tool for changing MAC address: macchanger.

ubuntu@pi:~$ sudo apt install macchanger

ubuntu@pi:~$  ifconfig -a | awk '/HWaddr/ {print "Interface: " $1 "\t MAC: " $NF}'
Interface: eth0 MAC: b8:27:eb:61:2b:1e
Interface: eth1 MAC: 00:e0:4c:53:44:58
Interface: eth2 MAC: 00:e0:4c:53:44:58
Interface: eth3 MAC: 00:e0:4c:53:44:58
Interface: eth4 MAC: 00:e0:4c:53:44:58

ubuntu@pi:~$ sudo macchanger -a eth1
Current MAC:   00:e0:4c:53:44:58 (REALTEK SEMICONDUCTOR CORP.)
Permanent MAC: 00:e0:4c:53:44:58 (REALTEK SEMICONDUCTOR CORP.)
New MAC:       00:20:34:60:75:ba (ROTEC INDUSTRIEAUTOMATION GMBH)

$ sudo macchanger -a eth0 (same)
$ sudo macchanger -A eth0 (any)
$ sudo macchanger -m 02:02:02:00:00:01 eth0
$ sudo macchanger -r eth0 (random)
$ sudo macchanger -e eth0
$ sudo macchanger -p eth0 (revert)
$ macchanger -l