utility for viewing/manipulating the MAC address of network interfaces.
Installation
manual
https://github.com/shilch/macchanger https://github.com/acrogenesis/macchanger
1. install macchanger
sudo sh -c “curl https://raw.githubusercontent.com/shilch/macchanger/master/macchanger.sh > /usr/local/bin/macchanger && chmod +x /usr/local/bin/macchanger”brew install acrogenesis/macchanger/macchanger2. verify macchanger was installed
which macchangermacchanger —help
apt-get
1. install macchanger
sudo apt-get install macchanger
Commands
Click here to expand...
https://blog.sleeplessbeastie.eu/2013/01/11/how-to-change-the-mac-address-of-an-ethernet-interface/
TEMPORAL CHANGE
sudo ifconfig eth0 hw ether 08:00:00:00:00:01 - for ubuntu
sudo ifconfig eth0 ether 08:00:00:00:00:01 - for mac
you may need to shutdown desired ethernet interface before changing the MAC address
sudo ifconfig eth0 downthen after changing address bring it up again
sudo ifconfig eth0 upPERMANENT CHANGE
edit /etc/network/interfaces configuration file to look something like this
# This file describes the network interfaces available on your system# and how to activate them. For more information, see interfaces(5).# The loopback network interface auto lo iface lo inet loopback # Network interfaces allow-hotplug eth0 iface eth0 inet dhcp hwaddress ether 08:00:00:00:00:01then reboot network interfaces
sudo service networking restart