change MAC address using macchanger on Kali Linux

Change to a Random MAC address

First, let’s see how we can use macchanger to change network card’s hardware MAC address to a random address. We can start by investigating our current MAC address of eg eth0 network interface. To do this we execute macchanger with an option -s and an argument eth0.

# macchanger -s eth0

The network interface you are about to change a MAC address on must be
turned off prior your MAC address change attempt. Use ifconfig command
to turn off your network interface:

# ifconfig eth0 down

If the following error message appears you have most likely failed to turn off your network interface:

ERROR: Can’t change MAC: interface up or not permission: Cannot assign requested address

Now, its time to change network card’s hardware MAC address to some random hexadecimal numbers:

# macchanger -r eth0

Bring your network interface up and display your new MAC addres:

# ifconfig eth0 down # macchanger -s eth0

Blogger : Sourabh Gehlot

Instagram Page : Tech Talks

It's only fair to share...Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInPin on PinterestShare on Tumblr

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *