jcadima
8/29/2015 - 4:57 PM

Change MAC Address

Change MAC Address

(1)
# ifconfig
here see your mac address in the following out put

wlan0     Link encap:Ethernet  HWaddr 00:2B:B5:43:A5:12
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          
where wlan0 is the network interface and ” 00:2B:B5:43:A5:12 ” is your mac address, next you need to bring the network interface down by typing          
          

(2)
# ifconfig wlan0 down

here replace wlan0 with the network interface you are using, normally it is wlan0 for WiFi and eth0 for Ethernet, now its time to change your mac address, simply type

(3)
ifconfig wlan0 hw ether 00:2B:B5:43:A5:3D

here replace 00:2B:B5:43:A5:3D with the mac ID you want to use and then bring the network interface up


(4)
ifconfig wlan0 up

now again see the output of ” ifconfig ” to check that now you HWaddr has changed from 00:2B:B5:43:A5:12 to 00:2B:B5:43:A5:3D