07-12-2023 11:33 AM - edited 07-12-2023 11:38 AM
Hi all!
I have around 100 switch and I have IP phones connected to those switches, Iam having the IP address and MAC address of the phone and I need to know which switch is that phone connected to it.
When i login to L3 switch and type show arp | include ip address it immediately find the mac address which I already have but the opposite is not correct.
How can i Find the switch from those two information's .
Solved! Go to Solution.
07-12-2023 03:39 PM
hi,
are you using cisco IP phones and CUCM/call manager?
you can check the switch and port information in CUCM/call manager.
search for the phone, i.e by device name (SEP+mac address format), description/text, DID number, etc.
click on the IP address link. look for the CDP info under network statistics > network.
07-12-2023 11:37 AM - edited 07-12-2023 11:41 AM
Hello @kakomaisa,
On you L3 Switch do sh mac-address-table | include <ip.phone.MAC>
Example:
You will see from which interface the MAC is learned, then which Switch is connected to that interface.
Continue until you find the Switch where the IP Phone is connected.
07-12-2023 11:38 AM - edited 07-12-2023 11:38 AM
"sh mac address-table address <mac address>" will show you which interface the mac has been learnt on which should be an uplink from one of your other switches.
Jon
07-12-2023 11:39 AM
Hi Jon and M02
That is the strange part, it does not show up there.
07-12-2023 11:50 AM
The arp cache timeout is a lot longer than the mac address table timeout.
Can you ping the IP and check again ?
Jon
07-12-2023 11:53 AM
I ping the IP address and it is replying but when I do show mac address table | my mac address, it does not show up.
07-12-2023 11:57 AM - edited 07-12-2023 11:57 AM
What is actual command you are entering ?
Should just be able to do "sh mac address-table address <mac address>" depending on switch version.
Have to say I have had issues in past with mac addresses not showing in tables even though it does ping so it's not always obvious why it is not working.
Jon
07-12-2023 12:00 PM
I can do show mac address table and see a lot of mac addresses and for test I took one of the macs addresses I am seeing and do show | that mac address and it showed up. I tried 5 MAC addresses till now and no one showed up.
As I said the strange part is when you do show arp and then IP address it brings up the MAC address but when I did show arp and then mac address it return zero result.
07-12-2023 12:00 PM
it CCNA basic MAC change when pass L3 interface
so what you see I think is MAC of SVI (default Gateway)
so
show mac check VLAN SVI in each SW
07-12-2023 12:02 PM
In my case I have the mac address as well as IP address, so I am just testing the arp and it brings me the correct mac address.
07-12-2023 12:09 PM
When i login to L3 switch and type show arp | include ip address it immediately find the mac address which I already have but the opposite is not correct. <<- what is incorrect
07-12-2023 12:11 PM
when I do sh arp | include mac address it does not bring up the ip address.
07-12-2023 12:15 PM
sh arp | include hard <<- use hard instead of mac
07-13-2023 01:38 AM
07-12-2023 12:36 PM
Hi MHM
same results, no luck.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide