Wired Intelligent Edge

 View Only
Expand all | Collapse all

Finding MAC Addresses OF HP 2510 Switchports

This thread has been viewed 0 times
  • 1.  Finding MAC Addresses OF HP 2510 Switchports

    Posted Dec 21, 2020 01:43 PM

    Hello!

    I am doing some Network Mapping/Planning for my company and trying to gather a list of ALL interconnected MAC Addresses within our network. I have a mix of HP switches including the HP 2510, HP 2530 I am having a problem specifcally with the HP 2510 models.

    Typically I get the Learned MAC Addresses table and the Interface's information (the commands used are "show mac-address" and "show interfaces all" respectively) along the LLDP or CDP neighbors to find out what each device, where it is connected, and how.

    The problem I have is that the "show interfaces all" command for my HP 2510s does not seem to list the MAC address OF the port but for every model of HP past that one the command works.

     

    Does anyone have any ideas on how to find the MAC for the SWITCHPORT itself.

     

    Thanks in advance for your help!



  • 2.  RE: Finding MAC Addresses OF HP 2510 Switchports

    Posted Dec 22, 2020 02:33 AM

    Hello @SageParrot 

    You can use the following commands to view the MAC addresses of every switch port.

    ProCurve Switch 2510-24# walkMIB ifPhysAddress

    If you have issues mapping the indices to interfaces (for example VLAN interfaces) you can use also the OID ifDescr in the same command.

    ProCurve Switch 2510-24# walkMIB ifDescr ifPhysAddress

    Of course an SNMP monitoring tool can also pull this values using SNMP.

    The MAC address assigned to each switch port is used internally by such features as Flow Control and the spanning-tree protocol.