I figured out how to change my mac address of my network card:
sudo ip addr # Show details
sudo ifconfig eth0 down # deactivate network card
sudo ifconfig eth0 hw ether DESIRED_MAC_ADDRESS # change mac address
sudo ifconfig eth0 up # activate network card
sudo ip addr # show details again
What would be the best way to make this a script which I could start each time I need this modification? Also where do I have to put this generated script? What is the standard folder for this?
I don't want it to be started every time Ubuntu starts. (But it would be nice to know how this is done, though. Where would be the best place to store it in that case?)
Appreciate any suggestions!
macchanger
. Changing and resetting your MAC is as simple assudo macchanger -m 00:11:22:33:44:55 eth0
andsudo macchanger -p eth0
.macchanger
. It doesn't work for me. That's why I figured out the alternative above.