Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

How to find out ipaddress or host connected on particular L2 switch port

How to find out ipaddress or host connected on particular L2 switch port??

3 REPLIES
Hall of Fame Super Blue

Re: How to find out ipaddress or host connected on particular L2

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

Bronze

Re: How to find out ipaddress or host connected on particular L2

Or if you have ip dhcp snooping enabled, its easy:

sh ip dhcp snooping binding

Re: How to find out ipaddress or host connected on particular L2

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

HTH, John *** Please rate all useful posts ***
1111
Views
0
Helpful
3
Replies
CreatePlease to create content