MAC Address Lookup

mac-address-lookup-ipcisco.com

MAC Addresses (Media Access Control Address) is the physical address of a network device. It works on Layer 2 of OSI Model and it is very important for networking. Every network interface or every device has a MAC address. Sometimes we need MAC address lookup for various reasons. In this lesson, we will learn how to do MAC address lookup on different platforms like Windows, Linux, MacOS, IOS, Android etc.

 

Now, let’s go and start how to learn MAC addresses on these platforms one by one.

 


You can also check IPv4 Addressing and IPv6 Addressing basics!


 

MAC Address Lookup For Windows

If you are using a PC which has Windows operating system on it, you can do MAC address lookup with two ways. One way is using command line (cmd) and the other is using Windows menus.

 

The first way is using comman line interface to view your MAC adderss. You can do this with the following steps:

  1. Firstly, you should access CLI by writing “cmd” to the search or run.
  2. After that, you should use ipconfig/all command to display ip information on your PC.
  3. And here you are. You can check the mac address of the interfaces here:

 

C:\Users\asus> ipconfig/all

Ethernet adapter Ethernet:

Media State . . . . . . . . . . . :

Connection-specific DNS Suffix  . :

Description . . . . . . . . . . . :

   Physical Address. . . . . . . . . : C2-E2-82-AD-B5-56

DHCP Enabled. . . . . . . . . . . :

Autoconfiguration Enabled . . . . :

mac-address-lookup-windows-ipconfig-all

The other way to do MAC address lookup on windows is using menus. To do this, you can follow the bellow steps:

  1. Firstly, go to
  2. Then, click Settings.
  3. In the settings part, click Network and Internet.
  4. Then, select the network that you will check MAC address for.
  5. After that, click details.
  6. The mac address will be displayed at the bottom line.

 

Physical Address (MAC): C2-E2-82-AD-B5-56

 


 

MAC Address Lookup For Linux

We have learned Windows MAC address lookup. Now, let’s learn how to learn MAC addresses on Linux devices. There are various ways to do this on Linux. Here, I will show you three ways of Linux mac address lookup. These commands are given below:

  • ifconfig
  • ip link show
  • cat /sys/class/net/*/address

 

The firsy one is using the command which displays all the ip information. This is ifconfig command.

 

┌──(kali㉿kali)-[~]

└─$ ifconfig

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

inet 192.168.125.129  netmask 255.255.255.0  broadcast 192.168.125.255

inet6 fe80::15aa:e2cc:54cc:a1e4  prefixlen 64  scopeid 0x20<link>

ether 00:aa:29:ff:1a:fc  txqueuelen 1000  (Ethernet)

RX packets 111  bytes 7921 (7.7 KiB)

RX errors 0  dropped 0  overruns 0  frame 0

TX packets 61  bytes 6380 (6.2 KiB)

TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Here, our mac address is in the line starting with ether. It is 00:aa:29:ff:1a:fc.

mac-address-lookup-linux-ifconfig

The second command which shows Linux physical address is “ip link show” command. Below, eth0 interface mac address is displayed at the last line.

 

┌──(kali㉿kali)-[~]

└─$ ip link show

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000

link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00

2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000

link/ether 00:aa:29:ff:1a:fc  brd ff:ff:ff:ff:ff:ff

mac-address-lookup-linux-ip-link-show

The other wayof MAC address lookup is using cat command like below:

cat /sys/class/net/*/address

 

└─$ cat /sys/class/net/*/address

00:aa:29:ff:1a:fc

00:00:00:00:00:00

linux-mac-address-lookup-ipcisco


 

MAC Address Lookup For MacOS

If you are using Apple Mac, you can find your MAC address easily. To do this MAC address lookup on Mac, you can follow the below steps:

  1. Firstly, select Apple menu on the top left.
  2. After that, select System settings (System preferences).
  3. Then, click Network.
  4. Under this part, select your network.
  5. Here, go to the Details (advanced) part.
  6. Click Hardware.
  7. And here your are. Your MAC address is there.

 


 

MAC Address Learning on IOS

We have learned how to find your MAC address on your computers, laptop etc. Now, let’s learn MAC address lookup on smart phones which uses IOS operating system. On an IOS device, there are four steps for MAC address learning. These are given below:

  1. Click Settings.
  2. Go to General.
  3. Click About.
  4. And here you are. Your MAC address is next to Wi-Fi Address.

 


 

Android MAC Address Learning

For other smart phones which are using Android operating system, you can follow the below steps:

  1. Go to
  2. Click
  3. Select About Phone/Device.
  4. Click Hardware Information or
  5. And here you are, at the below, you will find Wi-Fi MAC address.

 


 

How to Learn Mac Addresses On Cisco Routers and Switches?

In networking, MAC addresses are very important. Sometimes, we need to learn these physical addresses on routers and switches. To do MAC address lookup on Cisco devices, we have some specific commands. These Linux commands that display MAC address are given below:

  • show interfaces
  • show version
  • show interface vlan 1

 

Below, you can find the screenshots of these commands. We will use shows interfaces command on routers and three of these commands on switches.

 

Firstly, let’s start with a Cisco router.

 

Router# show interfaces

FastEthernet0/0 is administratively down, line protocol is down (disabled)

Hardware is Lance, address is 000c.cfa1.d79c (bia 000c.cfa1.d79c)

FastEthernet1/0 is administratively down, line protocol is down (disabled)

Hardware is Lance, address is 000d.bd22.0c7c (bia 000d.bd22.0c7c)

 

Now, let’s continue with a Cisco switch.

 

Switch# show interfaces

FastEthernet0/1 is down, line protocol is down (disabled)

Hardware is Lance, address is 0090.0c70.1e01 (bia 0090.0c70.1e01)

FastEthernet0/2 is down, line protocol is down (disabled)

Hardware is Lance, address is 0090.0c70.1e02 (bia 0090.0c70.1e02)

 

Switch# show version

Base ethernet MAC Address       : 0001.C914.AC47

 

 

Switch# show interfaces vlan 1

Vlan1 is administratively down, line protocol is down

Hardware is CPU Interface, address is 0001.c914.ac47 (bia 0001.c914.ac47)

 


 

Last Word

Here, we have learned MAC address lookup for various devices. We have learned how to learn mac address of the device on  windows, Linux, MacOS, even IOS and Android devices. We have also talk about how to learn mac address on Cisco routers and switches.

 

Back to: CCNA 200-301 v1.1 > Switching and LANs

Leave a Reply

Your email address will not be published. Required fields are marked *

CCNA 200-301 v1.1

Collapse
Expand
Latest Blog Posts