10-25-2020 11:12 AM
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?
10-26-2020 01:16 AM
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
10-26-2020 10:31 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide