Wired Intelligent Edge

 View Only
  • 1.  Finding IP Addresses of Devices Connected to 5406zl Switch Ports

    Posted Dec 20, 2012 10:03 AM

    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



  • 2.  RE: Finding IP Addresses of Devices Connected to 5406zl Switch Ports

    Posted Dec 20, 2012 10:28 AM

    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



  • 3.  RE: Finding IP Addresses of Devices Connected to 5406zl Switch Ports

    Posted Dec 20, 2012 04:24 PM

    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.



  • 4.  RE: Finding IP Addresses of Devices Connected to 5406zl Switch Ports

    Posted Dec 20, 2012 05:37 PM

    • 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



  • 5.  RE: Finding IP Addresses of Devices Connected to 5406zl Switch Ports

    Posted May 13, 2014 08:35 AM

    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



  • 6.  RE: Finding IP Addresses of Devices Connected to 5406zl Switch Ports

    Posted Mar 26, 2015 03:46 AM

    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



  • 7.  RE: Finding IP Addresses of Devices Connected to 5406zl Switch Ports

    Posted Mar 08, 2017 01:24 AM

    Hello guys try this command

     

    show lldp info remote command



  • 8.  RE: Finding IP Addresses of Devices Connected to 5406zl Switch Ports

    Posted Mar 08, 2017 01:39 AM

    this one works perfect

     

    show lldp info remote-device

    also theres local device

     

     



  • 9.  RE: Finding IP Addresses of Devices Connected to 5406zl Switch Ports

    Posted Jun 18, 2019 09:29 AM

    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.



  • 10.  RE: Finding IP Addresses of Devices Connected to 5406zl Switch Ports

    Posted Oct 06, 2020 12:42 AM

    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