How To Change MAC Address On Kali Linux


How To Change MAC Address On Kali Linux

As  for  your  understanding  I  am  ajay  soni  and  I  post  lot of  article  about  kali linux but  this  time  I  publish  fress  article  that  is  how  to  change  MAC address  on  kali linux.After our previous tips and trick about how to change MAC address on Windows, now we will learn about the same topic How to Change MAC Address on Kali Linux.

Changing MAC address or we also can call it MAC address spoofing will be useful in some cases, but we will talk about it later in conclusion at the end of this article.first  you  understand  the  meaning  of  what  exectly  MAC  address.


According to wikipedia:MAC ADDRESS


A Media  access  control address(MAC) is a  unique  identifier assigned  to  network  interface  for  communication  on  the  physical  network segment.MAC  address  are  used  as  a  network  adddress  for most IEEE 802 network  technologies,including ethernet  and  wifi.Logically  mac  address  are used  in  media access  control  protocol  sublayer  of   the  osi  reference model.MAC  address are most  often  assigned  by  the  manufacturer  of  a  network interface  controller,such  as  a card's  read  only  memory  or  some  other firmware  machanism.

what  is  your Requirement?


 first and last  thing  you  need  that  is  linux terminal

step by step guide to  Change MAC Address On Kali Linux

step:1.)  first  of  all  open  linux  terminal and  type  bellow comand

   
ifconfig | grep HWaddr


 How To Change MAC Address On Kali Linux

note: when  you  exicute above  command  you will see your original MAC address,
in my case my  original  MAC  address  is 08:00:27:b2:4d:4b

step:2) for  temporary changing  our MAC  address  we need to turn off the network interface first by running bellow  command for  turn  off  the  network  interface

    ifconfig eth0 down

step:3) after  that  you canconfigure  the  new  mac  address  by  following   bellow  cammand

    ifconfig eth0 hw ether 00:00:00:00:00:02


note:  you can change the MAC address using this hexadecimal format XX:XX:XX:XX:XX:XX

step:4) after  this  ,Now we can turn on the network interface again using  following  command.

    ifconfig eth0 up

step:5) now  we  are  coming  to  last  step   we can check again our MAC whether it's change or not.



IMPORTENT :
This  is  make  sure  your  changing  MAC  address  automaticlay  changed  to  orginal  when  you  restart  your  machine  if  you  want  to  change  your  mAC  address  permanently  even  you  restart  your  pc  coming  towared  my  next  article  which  is given  in  bellow  steps 

step:6) do you   know Kali Linux was built based on Debian. In Debian all the network interface was located on /etc/network/interfaces.

step:7) We will configure the /etc/network/interfaces. In this tutorial I will use pico text editor, but you can choose any of your favourite text editor.

    pico /etc/network/interfaces

step:8) Now we will add one line of script to change our MAC address permanently

    pre-up ifconfig eth0 hw ether 00:00:00:00:00:02





note: This script will be called on system startup.

step:9) If we want to restore the default MAC address, just add the # sign in front of script in step 8.

    #pre-up ifconfig eth0 hw ether 00:00:00:00:00:02


if  you  like  this  article  please  share  it  , I hope  you  enjoy it.