Changing Mac address manually
Hello guys pytools here, back again with another article. Today we are going to learn how you can change your Linux Mac address manually without using any tool.
So let's get started.
Before going to change the Mac address you need to understand what mac address is and why we need to change it?
Our network card has at least two addresses or identificators, the IP address we all know which can be dynamic and the physical address, the mac address which is unique for each device, it is the hardware address. Changing our mac address may be useful to avoid leaving logs with our real address on another computer or router. Changing the mac address may be useful to clone other mac addresses forcing them to get disconnected from a network and connecting again, useful to sniff the password when reinserted.
How to find Mac address?
To check your mac address just execute:
Ifconfig
On your Linux terminal
You will get Mac address under hw-ether property.
Here We can see on the enp2s0 network card the mac address is d0:17:c2:12:3c:cd .
How to change Mac address?
First of all, to edit our network card mac address we need to disable our network card, the mac can not be changed while the card is being used. To disable our network card run:
Ifconfig <interface> down
Note: in my case interface name is enp2s0
Then, to edit our mac address type:
ifconfig <interface name> hw ether <new Mac address>
Then enable the network card back by typing:
ifconfig <interface> up
The overall commands look like:
ifconfig enp2s0 down
ifconfig enp2s0 hw ether 00:11:22:33:44:55
ifconfig enp2s0 up
Want to see change Mac address type ifconfig command on your Linux terminal.
That's all for today guys hope you are enjoying our content and also guys Pls don't forget to follow us on Instagram and GitHub and do like our content on Instagram.
https://instagram.com/__pytools__
Comments
Post a Comment