SBN

How to Change Mac Address in Linux – HackerNet

What is Mac Address?

MAC Address is a permanent physical address. It is assigned by the device manufacturer and it was unique. An IP address is used to identify the device on the internet and a MAC address is used to identify the device between the multiple devices within the network and transfer the data between devices.

Each packet that is transferred in Network Contains Source MAC and Destination Mac Address.

Why Change the Mac Address?

MAC address is a unique address that is used to identify the device over the network. When we change the mac address it will help for anonymity over the network.

It also helps to bypass the MAC filter in the network by using another device’s mac address.

How to Change Mac Address in Linux

1. Open Terminal and type the below command to display all network interfaces in the machine

ifconfig

2. Select the network interface which you want to change the mac address

3. To change the network interface mac address we need to down it.

ifconfig wlan0 down

4. Changing MAC Address (Replace XX:XX:XX:XX:XX:XX with the mac address that you want to set)

ifconfig wlan0 hw ether XX:XX:XX:XX:XX:XX

5. Up the network interface

ifconfig wlan0 up

6. That’s it. your mac address has changed temporarily

*** This is a Security Bloggers Network syndicated blog from HackerNet authored by CyB3rBEA$T. Read the original post at: https://hackernet.in/how-to-change-mac-address-in-linux-hackernet/