HPE Aruba Networking & ProVision-based
1847860 Members
4033 Online
104021 Solutions
New Discussion

Finding MAC Addresses OF HP 2510 Switchports

 
SageParrot
Occasional Visitor

Finding MAC Addresses OF HP 2510 Switchports

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!

1 REPLY 1
Emil_G
HPE Pro

Re: Finding MAC Addresses OF HP 2510 Switchports

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.

I am an HPE employee

Accept or Kudo