Switches, Hubs, and Modems
1753956 Members
7707 Online
108811 Solutions
New Discussion юеВ

Re: What host IP address connected to port

 
BastiaanvH
Occasional Contributor

What host IP address connected to port

Hi,

I would like to indentify the connected host/IP address to a perticulair switch port. Is there a way to do this? By CLI or PCM?

Thank you in advance,

Bastiaan.
5 REPLIES 5
Lei.Ma
Frequent Advisor

Re: What host IP address connected to port

one solution is that you can add the mirror port in switch, then use sniffer to caupter the data.
the other option is that you can use PCM sflow to gather the port infomation.
or use CLI, you can use command "show ARP".

Joel Belizario
Trusted Contributor

Re: What host IP address connected to port

PCM lets you do show the neighbouring device by IP and also includes port information.

I'd recommend doing it this way if you are trying to map out lots of hosts.
OLARU Dan
Trusted Contributor

Re: What host IP address connected to port

If you want to use CLI, take the last 4 hex digits of the MAC address of the device connected to the port (show mac-address -port- =>4f4d), then go to your Inter-VLAN router and inspect the ARP table using someting like this: show arp | include 4f4d (works on a Cisco router).
Holger Hasenaug
Trusted Contributor

Re: What host IP address connected to port

For clients using DHCP you can enable DHCP-snooping on the switch and than you are able to see IP/MAC/VLAN/PORT information with the CLI command "show dhcp-snooping binding".
Paulen
Regular Advisor

Re: What host IP address connected to port

Hi,

Another way is to do 'show mac ', and use arping to ping it.

Take a look here: http://freshmeat.net/projects/arping/