Aruba & ProVision-based
cancel
Showing results for 
Search instead for 
Did you mean: 

Finding IP Addresses of Devices Connected to 5406zl Switch Ports

mcintoshs
Occasional Contributor

Finding IP Addresses of Devices Connected to 5406zl Switch Ports

Hello,

 

What is the CLI command which will yield the IP address of the device connected to a particular switch port and IP addresses connected to all switch ports?

 

Thanks,

Scott

7 REPLIES
cenk sasmaztin
Honored Contributor

Re: Finding IP Addresses of Devices Connected to 5406zl Switch Ports

hi

 

ProCurve Switch 3500yl-24G-PoEP# sh arp

 IP ARP table

  IP Address       MAC Address       Type    Port
  ---------------  ----------------- ------- ----
  10.0.50.1        0017c5-b0c221     dynamic 24
  10.0.50.43       f0def1-e26019     dynamic 13

cenk

paulgear
Esteemed Contributor

Re: Finding IP Addresses of Devices Connected to 5406zl Switch Ports

That will only work if the switch has actually contacted those hosts via IP, e.g. if it is acting as their router, or if you've pinged it from the switch on the same VLAN.  If routing is not turned on in the switch, the best approach is probably to use a tool like Linux nmap to ping all addresses in the VLAN, then review the MAC address table from the switch.

Regards,
Paul
Pete W
Valued Contributor

Re: Finding IP Addresses of Devices Connected to 5406zl Switch Ports

  • An IP scan followed by "show arp"
  • show mac-address
  • show lldp info remote (will tell you adjacent switches/phones/misc stuff)
  • show cdp neighbours (similar to above)

PRW

HPE MASE
Aruba ACMP
Fortinet NSE 1-7
Cisco CCNP
dkawka
Occasional Visitor

Re: Finding IP Addresses of Devices Connected to 5406zl Switch Ports

Works perfectly for me with nmap and sh arp [port]

Export the nmap result to file and search for the mac of the port in the export file

Bijukiv
Advisor

Re: Finding IP Addresses of Devices Connected to 5406zl Switch Ports

hi

 

i need to know the cli command to check the ip address connected to port 10 of hp core switch. In port 10 of core switch its a fibre cable connected to a different switch.

 

how to find out the ip address of the port 10

 

is it possible to check the connectivity of port 10 which is connected to a switch with the ip address

 

Biju

Faridk
Occasional Visitor

Re: Finding IP Addresses of Devices Connected to 5406zl Switch Ports

Hello guys try this command

 

show lldp info remote command

Faridk
Occasional Visitor

Re: Finding IP Addresses of Devices Connected to 5406zl Switch Ports

this one works perfect

 

show lldp info remote-device

also theres local device