cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
422
Views
0
Helpful
2
Replies

finding MAC of IP address and which switch it is connected to

dcpar5145
Beginner
Beginner

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.

2 Replies 2

Ramblin Tech
Spotlight
Spotlight

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.

Disclaimer: I am long in CSCO

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.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: