Changing MAC Address in Linux aka. MAC Spoofing

By: Zhiqiang Ma In: Linux

MAC stands for Media Access Control which is a six byte number, usually expressed as a twelve digit hexadecimal number. IPs in LAN are translated to MAC address by the ARP (Address Resolution Protocol) protocol. For some reasons such as keeping the true MAC address from being logged, accessing to the network which bounds IPs together with MAC address, the MAC address of NIC card may need to be changed.

Changing the MAC address in Linux box is very easy. Let’s use the example that we want to change the eth0 interface’s MAC address to 00:00:00:00:00:01:

Shut down the interface

# ifconfig eth0 down

Changing the MAC address of the interface

# ifconfig eth0 hw ether 00:00:00:00:00:01

Bring up the interface

# ifconfig eth0 up

Checking the new MAC address

$ ifconfig eth0

The MAC address should be changed to 00:00:00:00:00:01 now.

Author: Zhiqiang Ma Posted on: Jun 23, 2010 Views: 623
Tags: , ,
Like this post? Subscribe full-text feeds from all Fclose.com blogs:
Add your comments, share your thoughts

Be nice. Keep it clean. Stay on topic. No spam.