How to Change the MAC Address of Linux
Today I’m going to show how to change the Media Access Control (MAC) address of your Linux system. I’m testing on Kali linux.
Table of Contents
What is MAC address
According to Wikipedia, the MAC address is a unique identifier assigned to a network interface controller (NIC) for use as a network address in communications within a network segment. This use is common in most IEEE 802 networking technologies, including Ethernet, Wi-Fi, and Bluetooth.
Why Change the MAC Address?
Normally we don’t need to change the MAC address of our system. But if any wireless system has blocked your main MAC, you may need to change the MAC to access the network.
Change MAC address
We can easily spoof MAC address in Kali. Run this command to see your MAC addess:
sudo ifconfig
Output:

Look at eth0 Ethernet interface. 00:15:5d:e1:70:a7 is the MAC address of my system.
To change the MAC to random address run these commands:
sudo ifconfig eth0 down
sudo macchanger -r eth0
sudo ifconfig eth0 up
Set a Specific MAC address:
sudo ifconfig eth0 down
sudo macchanger -m 00:15:70:00:20:75 eth0
sudo ifconfig eth0 up
Done! Now you can run sudo ifconfig
to see the new MAC.
Comment
Preview may take a few seconds to load.
Markdown Basics
Below you will find some common used markdown syntax. For a deeper dive in Markdown check out this Cheat Sheet
Bold & Italic
Italics *asterisks*
Bold **double asterisks**
Code
Inline Code
`backtick`Code Block```
Three back ticks and then enter your code blocks here.
```
Headers
# This is a Heading 1
## This is a Heading 2
### This is a Heading 3
Quotes
> type a greater than sign and start typing your quote.
Links
You can add links by adding text inside of [] and the link inside of (), like so:
Lists
To add a numbered list you can simply start with a number and a ., like so:
1. The first item in my list
For an unordered list, you can add a dash -, like so:
- The start of my list
Images
You can add images by selecting the image icon, which will upload and add an image to the editor, or you can manually add the image by adding an exclamation !, followed by the alt text inside of [], and the image URL inside of (), like so:
Dividers
To add a divider you can add three dashes or three asterisks:
--- or ***

Comments (0)