11-10-2008 12:49 AM - edited 03-06-2019 02:23 AM
How to find out ipaddress or host connected on particular L2 switch port??
11-10-2008 12:53 AM
Vinoth
This is a 2 step process.
1) Find the mac-address that is connected to the port ie.
sh mac-address-table interface gi0/2
2) Then you need to log on to the device that does the routing for this device which will either be a router or a L3 switch
sh arp | include
Jon
11-12-2008 06:33 AM
Or if you have ip dhcp snooping enabled, its easy:
sh ip dhcp snooping binding
11-12-2008 07:03 AM
I do it the way Jon describes. It works great.
Also a tip, if you're trying to find out where other switches connect to your core (assuming you're doing this on the core), you can do a sh int to find the mac address of that switchport, and then look for that mac address on the other switch to find out what port it connects to. Works well. I just had to map out my network doing it this way.
--John
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