Static MAC Address Table Entry

Hello Wisam.

I don’t know of a way to do it in one command, but you can do the following:

Step 1: To determine the MAC address of the device connected to Fa0/10, use the following command:

Switch#show mac address-table | include fa0/10

This will give you a list of MAC addresses associated with that port. If you only have one device on this port, only one MAC address will show up.

Step 2: To determine the IP address associated with the MAC address you found, use the following command:

Switch#show arp | include XXXX.YYYY.ZZZZ

where XXXX.YYYY.ZZZZ is the MAC address that you found in the first step. Notice that Cisco formats MAC addresses in this way, so don’t use the AA:BB:CC:DD:EE:FF format.

Now if you have the IP address and you want to find the MAC address and the related interface, then just reorder the steps. Same goes if you just have the interface and you want to find the other two.

I hope this has been helpful!

Laz