03-30-2023 07:59 AM
Hello, we have a core L3 switch connected to 30 access switch L2. One device 10.10.10.10 is connected to the access switch with vlan 10. Now we have ip address and its mac for this device. we can find which access switch the device is connected to. but we need to logon to each access switch one by one. Is it possible to find the device quickly? Thanks
03-30-2023 08:11 AM
Hi
What you can find quick is in which access switch the device is connected. If you have the mac address you just need to check which port the mac address comes from and you will know which switch is it.
On the core you do:
show mac address-table address (client mac address)
You will see something like:
Vlan Mac address Type Port (This port is the uplink between Core and Access switch)
But, if you want to know in which port of that access switch the device is connected, you need to access the access switch to figure this out.
03-30-2023 08:14 AM
Start at the L-3 Switch. Run the show arp command with the IP 10.10.10.10. That will give you the MAC address of the device. Then at the L-3 switch use the command show mac-address address and copy and paste in the mac address you found from the show arp command. That will point you to the switch that the device is connected to. Log into the access layer switch, and use the show mac-address address and copy and paste in the mac address. This will show you the port the device is connected to.
04-03-2023 08:11 AM - edited 04-03-2023 08:44 AM
Thanks. but some of them cannot work, for example, In the L3 SW, show arp can show the device's mac address, and its port, but the command cannot show its mac address for some device, so that we cannot know its port connected to L2 sw. In other word, in L3 SW, show arp can show all ip address and mac, but show mac add cannot show all mac address shown by show arp,
04-03-2023 09:29 AM
Its all depends what device you have in the network, we have seen some medical device not show MAC address at all, and it pings as expected with IP address, that is odd we have observed,
So learning experience, we make description of the port with MAC address, so we can easily identify them
You should have system in place some time to grab all the MAC address and port information make it work out of box like Python to co-related.
As a network admin - responsible for all the device in the network and audit regular basis.
check what device that is not showing MAC address and identify make a fixed ports to plug in in the future use case.
04-05-2023 02:14 PM
04-03-2023 09:34 AM
Right, it also depends on the device status.
04-03-2023 09:50 AM
@Leftz If you know the IP address, try to ping the device from another subnet first. If it responds, its MAC address will be registered in the ARP and MAC address tables on the L3 switch.
04-03-2023 10:45 AM
Right, thanks
04-05-2023 04:05 PM
https://github.com/pouriyajamshidi/CiscoMacFinder
This Q round and round in Cisco community' the answer is python script that use to detect mac address in network check link above.
Thanks
MHM
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