On a linux server, I am trying to find the MAC addresses that my server is aware of. Specifically the MAC address of the switch port I am connected to.
Is this possible?
Update: The Below answers assisted me. My switch is a managed switch, however because the IP addresses on my host machines were set to static, the switch did not pick up the MAC Addresses for some reason. I changed the hosts to DCHP, which allowed my switch to properly pick up the MAC addresses on the connected ports after they sent DHCP requests. This allowed me to use the switches MAC-Address table to figure out which hosts were connected to which ports and I put the hosts back to static IPs.