Monday, August 18, 2008

UANA-Setup: Identifying your MAC address on Linux

As part of the UANA-Setup process, you're asked to enter your MAC address. This is the unique identifier for your network hardware.

What is your MAC address? You'll likely have a couple, one for the cable connection and one for wireless.

How do you find the wireless one? Open a terminal (EeePc users click CTRL, ALT and T at the same time, Ubuntu users click Applications > Accessories > Terminal) then type iwconfig and press enter. This will list all the interfaces. The short names on the left are the interface names, and on the right should be whether it's got wireless extensions. If an interface isn't wireless it will appear like this:
eth0 no wireless extensions
If an interface is using wireless, it'll appear like this (followed by more information):
eth1 IEEE 802.11a ESSID:"UANA-Setup"
The above line indicates eth1 is the wireless interface and we're currently connected to UANA-Setup. Now using the interface name for the wireless connection (eth1 in the example above, it could be ath0, eth0, eth1, eth2 or something else) we look up more information by typing:
ifconfig eth1
Replace eth1 with the interface with a wireless connection. It will now display information about that particular interface. You want the MAC address, that's the one prefixed with HWaddr and looks like 31:41:59:26:53:59 (6 pairs of numbers joined by semicolons).
Yay, you have your wireless MAC address.