What is a MAC address?

First note that a MAC address has nothing to do with Mac OS X or Macintosh computers. It is an abbreviation of “Media Access Control” and is supported by all modern computer hardware.

A MAC address is an essentially unique number associated with a network card in a machine; it serves as a convenient way to distinguish between two different computers. A MAC address consists of 48 bits, usually represented as a string of 12 hexadecimal digits (0 to 9, a to f, or A to F); these are often grouped into pairs separated by colons or dashes. For example, the MAC address 001B638445E6 may be given as 00:1b:63:84:45:e6 or as 00-1B-63-84-45-E6.

Why does Magma need a MAC address?

The MAC address is used to generate the magmapassfile, so that Magma will run on the appropriate machine.

How do I determine my MAC address...

...using Windows Vista or Windows 7?

To determine the MAC address of a machine running Windows Vista or Windows 7, click on the Start menu, type “cmd.exe” in the “Search programs and files” box, and press Enter. This will open up a command shell.

Starting a command shell. Starting a command shell.

In the command shell, type:
getmac
The command shell.

and press Enter. This command will print some information on all network cards in the system.

Your MAC address is outputted by getmac.

The XX-XX-XX-XX-XX-XX part from the above, where each X is a hexadecimal digit (0 to 9 or A to F), is the MAC address. If more than one line is printed, any nonzero address should do (although it is probably best to use the first one).

...using Windows XP?

To determine the MAC address of a machine running Windows XP, click on the Start menu and select “Run...”. Type “cmd.exe” and press the OK button. This will open up a command shell.

Select Run from the Start menu. Run cmd.exe.

In the command shell, type:
getmac
The command shell.

and press Enter. This command will print some information on all network cards in the system.

Your MAC address is outputted by getmac.

The XX-XX-XX-XX-XX-XX part from the above, where each X is a hexadecimal digit (0 to 9 or A to F), is the MAC address. If more than one line is printed, any nonzero address should do (although it is probably best to use the first one).

...using an older version of Windows?

If the method above using getmac does not work for you, this alternative may be worthwhile trying. Open a command shell as above, and in the command shell type:

ipconfig /all
and press Enter. This command will print information on all network cards in the system.

Your MAC address is outputted by ipconfig /all.

The line we are looking for is of the form
Physical Address. . . . . . . . . . : XX-XX-XX-XX-XX-XX
and the XX-XX-XX-XX-XX-XX part is the MAC address. If more than one physical address is printed, any nonzero address should do (although it is probably best to use the first one).

...using Mac OS X?

To determine the MAC address of a machine running Mac OS X, bring up the “System Preferences” window by selecting it from the Apple menu.

Open System Preferences from the Apple Menu.

Select “Network”, and choose the name of your network connection from the list on the left-hand side of the window (e.g., “Ethernet”, “AirPort”).

Select the Network preference pane.Choose your interface and click on Advanced...

Click the “Advanced...” button in the bottom-right corner, and then on either the “Ethernet” or “AirPort” tabs as appropriate.

The relevant line will look like this:
Ethernet ID:  XX:XX:XX:XX:XX:XX
or
AirPort ID:   XX:XX:XX:XX:XX:XX
where each X is a hexadecimal digit (0 to 9 or A to F).

The MAC address is listed under the Ethernet or AirPort tab.

The XX:XX:XX:XX:XX:XX part from the above is the MAC address.

...using Linux?

To determine the MAC address of a machine running Linux, begin by creating a shell or terminal window, if you do not already have one. If using a desktop environment such as Gnome or KDE, this can usually be found as an option in the right mouse button menu (common choices of name are “Terminal”, “Konsole”, or “Shell”). The other likely location is in the Applications menu, possibly in the System Tools submenu.

In the shell, type the following:
/sbin/ifconfig -a
This command will print information on all networks in the system. The relevant line(s) will look like this:
eth0      Link encap:Ethernet  HWaddr XX:XX:XX:XX:XX:XX
where each X is a hexadecimal digit (0 to 9 or A to F).

The XX:XX:XX:XX:XX:XX part from the above is the MAC address.

...using Solaris?

To determine the MAC address of a machine running Solaris, begin by creating a shell or terminal window, if you do not already have one.

If you have superuser access to the machine, run su to become the superuser and type the following command:
/usr/sbin/ifconfig -a
This will print information on all networks in the system. The relevant line(s) will look like this:
ether XX:XX:XX:XX:XX:XX
where each X is a hexadecimal digit (0 to 9 or A to F). (Note: some fields may have only one digit in them. This is OK.)Unfortunately, the previous approach does not work without superuser access (all information except the MAC address is displayed in that case). If your machine's network interface is currently up (i.e., it is connected to a network) you may be able to use arp instead. Type the following command:
arp `hostname`
This command will print address resolution information for the machine. The relevant line(s) will look like this:
foo (xx.xx.xx.xx) at XX:XX:XX:XX:XX:XX permanent published
where each X is a hexadecimal digit (0 to 9 or A to F). (Note: some fields may have only one digit in them. This is OK.)

The XX:XX:XX:XX:XX:XX part from the above is the MAC address.

...using some other operating system?

For UNIX systems, try running ifconfig as described in the Linux instructions. If that does not work, it is possible that the output from running dmesg will include the MAC address (amongst a lot of other information). Of course, if you have a local sysadmin they can probably determine this information for you. If all else fails, you can always get Magma to tell you the MAC address.

I'm still struggling to discover my MAC address under Linux.

To determine the MAC address for each machine, you can try using this very simple Linux program:

Assuming it is downloaded to the current directory, run the program by typing
chmod a+rx macaddr
./macaddr
in the shell. This will print the MAC address and the hostname, if present, in brackets. The hostname is not essential, but can be convenient for identification purposes. For example:
00:1b:63:84:45:e6 [fano]
Mail the output of this program, run on all of your machines, to us and we will reply with your password file (your magmapassfile).

If the macaddr program fails work on an x86/x86_64 machine, then try this version:

I tried that, and it didn't work. Now what?

If you have followed the appropriate steps above and still been unable to determine your machine's MAC address, you can always get Magma itself to tell you what MAC address your machine has. When you try to start Magma without an appropriate magmapassfile, it should print an error message and exit. Part of this message will be the MAC address(es) that it detected for your machine. Any one of these should work.

Note: you will have to run Magma from a shell or command window in order to see this message. Otherwise the window will close before you have time to read it!

The drawback of this approach is that you will then have to send us your MAC address and wait for the magmapassfile to be generated. If you are able to tell us the MAC address ahead of time (i.e., at the point of ordering Magma), then we can send you an appropriate magmapassfile along with the download instructions, and you will be able to start using Magma immediately.

I have more than one MAC address. Which one should I use?

Any should work, as long as it is nonzero. As a general rule it is best to use the first one outputted by the methods above.

I don't have a MAC address! What can I do?

Email us and we'll see what we can work out.

How do I send you my MAC address?

You can specify it in the appropriate section of the order forms, or simply email it to us.

The order form complained about a bad MAC address. What should I do?

The order form expects the MAC address to be specified in one of a few ways; if you use a different format then it will be unable to recognise the MAC address. The MAC address must be specified using hexadecimal digits (0 to 9 or A to F), possibly with separators between them. In the following format descriptions, X will indicate a value which must be such a hexadecimal digit, and Y indicates either 1 or 2 hexadecimal digits. The formats understood are:

Formats other than the above will not be recognised. Note that it doesn't matter whether lower case or upper case letters are used, and when separators are used a leading zero may be omitted from any component. In most cases it should be possible to directly copy-and-paste the value obtained by following the instructions above.

If you think that you have followed the format but are still getting an error message, re-type the entry carefully; it may be that you have accidentally used a letter instead of a number (or vice versa). For instance, typing a capital ‘o’ instead of a zero is an easy mistake to make.

I replaced or upgraded my hardware, and now my MAC address is different. What should I do?

Send us the new MAC address and we will send you an updated magmapassfile for use with your new hardware configuration.

FAQ Index