06-13-2023 01:42 PM
I am trying to find the mac address of a device and which swithch and interface it is connected to. I the only thing I have is the IP address.
06-13-2023 01:49 PM
The ARP cache of the device's default gateway will show you the MAC address associated with the IP address, while the MAC address table will show you which port and VLAN that MAC address was learned on. If there are multiple L2 hops between the device and the default gateway, you can chase down the physical location by iteratively showing the MAC address table in each hop, working backwards from the gateway.
06-13-2023 01:52 PM
Hi
From a layer 3 switch or router ping the IP and run the commamd show ip arp | in <ip you ping>
You will find the Mac address
Then, with the Mac address in hands run the command
show Mac address-table <Mac address >
You will see the interface it is connected.
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