Every computer on a network has a unique identifier. Just as you would address a letter to send in the mail, computers use the unique identifier to send data to specific computers on a network. Most networks today, including all computers on the Internet, use the TCP/IP protocol as the standard for how to communicate on the network. In the TCP/IP protocol, the unique identifier for a computer is called its IP address.
There are several ways of determining your computer's IP address:
In computer networking, a Media Access Control address, better known as MAC address, is a unique identifier assigned to a network adapter or network interface card (NIC) by the manufacturer for identification. The MAC address can also be called the Ethernet Hardware Address (EHA), hardware address, adapter address or physical address. Your computer may have more than one MAC address. Do you have wireless and an ethernet port? Then you have at least two MAC addresses. Your smart phone probably also has a MAC address -- my iPhone has two; one for wireless and one for bluetooth.
MAC addresses are typically 6 groups of two hexadecimal digits (0-9,A,B,C,D,E,F), separated either by colons (:) or hyphens (-). The Wi-Fi Mac address on my iPhone, for example is: 00:1C:B3:09:85:15. The first three numbers, 00:1C:B3, are an Apple manufacturing code; only Apple products will have MAC address starting with those digits. (Settings then General then About then Wi-Fi Address)
Why do you care about MAC addresses? Generally speaking, you don't. But if you are having trouble with connecting to a network or if your computer has been hacked, then the ACCC's security, networking, operations, or repair folks might need you to tell them what it is to help them troubleshoot your problem. So here is how to tell.
Note that you must have TCP/IP installed to be able to query your MAC address.
The actual network adaptors present in your computer are all that XP lists. Vista and 7, on the other hand, lists many additional possible network connections, even if they aren't being used. But the Wireless and Local Area Connection sections are the same.
If you have Open Transport, use it. If not, while you are connected to an ethernet network (the Internet, for example), do the following:
# ifconfig -a eth0 Link encap:Ethernet HWaddr 00:09:3D:12:33:33 inet addr:10.248.155.17 Bcast:10.248.255.255 Mask:255.255.0.0 inet6 addr: fe50::234:3dff:fe12:7d73/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3489041718 errors:0 dropped:0 overruns:0 frame:0 TX packets:3259212142 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:2732221481 (2.5 GiB) TX bytes:4065716672 (3.7 GiB) Interrupt:185
# ifconfig -a ce0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2 inet 128.248.xx.xx netmask ffffff00 broadcast 128.248.xx.255 ether 0:3:ba:21:33:33
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 ether 00:1f:f3:5b:2b:1f media: autoselect status: inactive supported media: autoselect 10baseT/UTP <half-duplex> 10baseT/UTP <full-duplex> 10baseT/UTP <full-duplex,hw-loopback> 10baseT/UTP <full-duplex,flow-control> 100baseTX <half-duplex> 100baseTX <full-duplex> 100baseTX <full-duplex,hw-loopback> 100baseTX <full-duplex,flow-control> 1000baseT <full-duplex> 1000baseT <full-duplex,hw-loopback> 1000baseT <full-duplex,flow-control> none en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::21f:5bff:fec7:ee2f%en1 prefixlen 64 scopeid 0x5 inet 192.168.1.108 netmask 0xffffff00 broadcast 192.168.1.255 ether 00:1f:5b:c7:ee:2f media: autoselect status: active supported media: autoselect
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll ef0 1500 131.193.195 something.zone.uic.72967739 0 49389949 0 0 ALL-SYSTEMS.MCAST. 08:00:69:aa:4a:55 lo0 32992 loopback localhost 2320502 0 2320502 0 0 ALL-SYSTEMS.MCAST.
Newer versions of HP-UX use: nwmgr --get
# nwmgr --get Name/ Interface Station Sub- Interface Related ClassInstance State Address system Type Interface ============== ========= ============== ======== ============== ========= lan0 UP 0x00306EF4E07C igelan 1000Base-T lan1 UP 0x000F202B92D4 igelan 1000Base-T lan2 UP 0x0010837BDE00 btlan 100Base-TX
The Station Address is the MAC address, for example for lan0, it is 00:30:6E:F4:E0:7C.
In older versions of HP-UX, you might have to use lanscan.
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Colls fxp0 150 <link> 00:08:c7:3c:9b:02 4112773 0 224501 0 0
Several people tried this command for me. Most got the MAC address, but some didn't. I have no idea why. Here is another command that even a non-root user can try: /etc/nvram eaddr
The ifconfig -a command doesn't return the MAC address under AIX, so you must use netstat -ia.
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll en0 1500 link#2 0.2.55.3a.0.97 0 0 14 0 0 01:bb:5e:00:cc:01
December 03, 2012