Is there an easy way to view MAC address by hardware device? I know you could sling together a whole bunch of Bash logic with sed to do this but I figure there has to be an easier way to get this info. Ex: You have a server with a whole bunch of network cards and you want to see MAC address by device? I can figure out how to manually correlate them or I can just pull the info from IPMI but Linux always seems to have a fast way to do things - I just don't know what it is in this case. What I'm looking for is something like:
<Some command>
NIC 1 - Intel x710
<its MACs>
NIC 2 - MLX5
<its MACs>
NIC 3 - Broadcom Whatever
<its MACs>
Something like that. The important thing is determining the model of the network card: Mellanox MLX5, Intel x710, etc