Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What is the best MAC address changing/spoofing/editing program available for windows, mac and linux?

share|improve this question
up vote 11 down vote accepted

On Mac OS X : ifconfig <interface> ether <new mac address>
On linux : ifconfig <interface> hw ether <new mac address>
On Win XP :

share|improve this answer
I am wondering,In Linux does a reboot clear the modified mac address? Or would it be saved? – Grishanko Jul 9 '09 at 23:24
It is a rare chipset that allows modified MAC addresses to be permanently saved. At best, you can tell the OS to restore the custom MAC at boot. – womble Jul 10 '09 at 0:39
@Grishanko, womble: on Red Hat based systems, the MACADDR setting (from /etc/sysconfig/network-scripts/ifcfg-*) can be used for this. I use it all the time :-) – Cristian Ciupitu Sep 12 '09 at 21:58
The above command is temporary on most systems and will not persist across reboots. On RedHat systems, @CristianCiupitu has the correct answer. – Stefan Lasiewski Sep 14 '12 at 23:25

If you use ifconfig to alter the MAC address, the change is not preserved (reboot). If you want the MAC to be changed permanently, you need to edit the interface's config file.

In Debian/Ubuntu this is /etc/network/interfaces. Add a line like hwaddress ether 01:02:03:04:05:06 for the interface in question:

iface eth0 inet dhcp
    hwaddress ether 01:02:03:04:05:06

Best, PEra

share|improve this answer

SMAC is good on Windows (, but it isn't free. Many network adapters in Windows can be changed manually however...

Right-click the network adapter--> Properties --> Configure --> Advanced, and then find the property called Network Address (or Locally Administered Address depending on your version of Windows). Enter the MAC you want without dashes, and restart so that it takes effect. Changing the option back to "Not Present" will reset the MAC to the real hardware MAC address.

share|improve this answer

A. For Windows

If you are going to change MAC address only once or rarely, Then in windows you can do if from device manager. In device manager change properties of network card you want to change MAC address for and in settings you get option for changing MAC address. The field is not called MAC Address, it is called something else. It is blank by default. (Not having access to windows machine so cant write exact name of the field. It was probably Device Identification but not really sure.)

You have to put only 12 hex digits of mac in the field. No separator (:) or (-) is required while entering MAC. But once you enter something in it you can leave it blank later to restore original MAC. So you must note original MAC address somewhere before putting some test MAC address in that field.

In windows you can use ettercap to spoof an capture data. You can also use cain n abel to spoof and capture passwords.

B. For Linux / MAC

In Linux and MAC you can use ifconfig command with hw parameter. Read man page for more details on how to use it.

For spoofing you can install package dsniff in Linux. It has tool called arpspoof that can help in spoofing. Ettercap is also available for Linux. So you can use that too in case you want some GUI.

share|improve this answer
On Vista the field is called "Locally Administered Address" – Kamil Kisiel Jul 10 '09 at 6:51
I think it is same on Windows too. Thanks for the name. I had completely forgotten it. – Saurabh Barjatiya Jul 10 '09 at 7:17

Can't address Windows and the Mac, but under Linux, the ifconfig command would do the trick.

share|improve this answer

Not quite what you asked for but how about using arp to tell the router your new address?

arp -s

(but ifconfig is the way to go)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.