cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6100
Views
0
Helpful
2
Replies

Cisco SG350 - How to get switch port MAC addresses?

Eric_cisco
Level 1
Level 1

Hi,

 

I can get the MAC address of a SG350 switch with "show system" command but I cannot find a command to get the MAC address of the switch ports like we get with a "show interfaces" on IOS.

 

I noticed that the MAC address used by each port seems to be close to the switch MAC address.

 

What is the command or formula to get the MAC address of each port on a SG350 switch?

2 Replies 2

Martin Aleksandrov
Cisco Employee
Cisco Employee

Hello Eric,

 

All Layer 2 switching ports maintain MAC address tables. Try this one: show mac address-table [dynamic | static | secure] [vlan vlan] [interface interface-id] [address mac-address]

 

Mac address to IP address binding:

show ip arp inspection list

 

Regards,

Martin

Hello Martin,

 

Thank you for your help.

 

Unfortunately "show mac address-table" just lists the MAC address of other devices and the switch MAC address; not the switch ports MAC address we can see in LLDP/STP packets.

 

switch#show mac address-table
Flags: I - Internal usage VLAN
Aging time is 300 sec

    Vlan          Mac Address         Port       Type
------------ --------------------- ---------- ----------
     1         xx:xx:xx:xx:xx:c8      gi1      dynamic
     1         xx:xx:xx:xx:xx:af       0         self
     9         xx:xx:xx:xx:xx:98      gi10     dynamic
     9         xx:xx:xx:xx:xx:08      gi10     dynamic

switch#

As for the "show ip" command since I did not set up the switch ports with an IP address then nothing can be seen with this command.

 

Maybe the operating system of SG350 does not have this feature like with Cisco IOS and the "show interfaces" command. At least a formula is probably existing to find the MAC address of the switch ports.

 

Regards,

 

Eric