finding MAC of IP address and which switch it is connected to
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Labels:
-
Other Network
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
