Aruba & ProVision-based
1752356 Members
6072 Online
108787 Solutions
New Discussion юеВ

Re: 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

9 REPLIES 9
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

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
New Member

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

Hello guys try this command

 

show lldp info remote command

Faridk
New Member

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

this one works perfect

 

show lldp info remote-device

also theres local device

 

 

HGaudini
Occasional Visitor

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

I know this is a super old post, but none of the answers really gave me what I wanted for an Aruba Switch.

This is the command that did the trick for me:

 

show cdp neighbors detail

 

This shows each port with IP Address, MAC Address and some additional info.

nbctcp
Occasional Advisor

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

Let say the switch and device that connected has different subnet

SW: 192.168.0.1
DEVICE: 10.0.0.10

# show arp
# show cdp neighbors detail
can get arp of the device, but can't get ip or subnet of it

I can't see as well in
# debug all