While the ipconfig command will work on Windows Vista
and Windows 7, the output is substantially longer than in previous
versions of Windows, making it much more difficult to find the
relevant information. Instead, we recommend using the
getmac command.
Click on the Start menu button.
Type cmd in the search box and press
Enter. This will open a black Command Prompt window.
Type getmac /v /fo list
Find the entry associated with your network card,
typically labeled Local Area Connection for wired
interfaces or Wireless Network Connection for wireless
interfaces.
The value listed as the Physical Address is the
Hardware MAC Address for that network card. It will be in the
format XX-XX-XX-XX-XX-XX.
In the Internet & Wireless (Internet &
Network in older versions) section, select the
Network control panel.
Select the desired network device in the list. This will
typically be Ethernet for the wired Ethernet port or
AirPort for the wireless network.
Click the Advanced... button in the lower right
corner.
Select the Ethernet or AirPort tab as appropriate.
The value listed beside Ethernet ID: or AirPort ID: is
the Hardware MAC Address for the selected network device. It
will be in the format XX:XX:XX:XX:XX:XX.
Find the entry associated with your network card,
typically labeled le0, ie0, or hme0.
# /sbin/ifconfig -a
le0: flags=863<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST> mtu 1500
inet 131.225.80.209 netmask fffff800 broadcast 131.225.87.255
ether 8:0:20:10:d2:ae
The value listed next to ether is the Hardware MAC
Address for that network card. Solaris and SunOS strip off
the leading 0 commonly included in the MAC address. In the
case of this machine, the Hardware MAC address is
08:00:20:10:d2:ae.
Find the entry associated with your network card,
typically labeled lan0.
$ lanscan
Hardware Station Dev Hardware Net-Interface NM Encapsulation Mjr
Path Address lu State NameUnit State ID Methods Num
2.0.2 0x08000935C99D 0 UP lan0 UP 4 ETHER 52
The value listed below Station Address is the
Hardware MAC Address for that network card. HP systems remove
the :'s from the MAC address. In the case of this system, the
Hardware MAC Address is 08:00:09:35:C9:9D.