I see that this post is an oldie, but it never hurts to write a few lines as I was struggling with the same problem.
First of all, the purpose of the program is to "change" the MAC address of your interface, connected to the Internet. Without going into further detail on how handshakes work and how does a computer "get an IP from a router", I'll give you the solution to the question you asked:
sudo ifconfig eth0 down
sudo macchanger -r eth0
sudo ifconfig eth0 up
sudo systemctl restart networking
You must firstly get your interface down, change the mac address and after that give a fresh restart to your system.
Now, I'm assuming that you're using a newer version of Linux, that's why I'm including the systemctl
command there.
You can use the /etc/init.d
directory to refer to the networking module or use the service
command.
Either way, you'll get the same results.
If this doesn't help, proceed with the following:
- Check if the network-manager is working
- Check if your interface supports mac changes