If you need to know the port on a Cisco switch to which a particular host is connected and know the media access control (MAC) address, you can determine the port to which it connects using a
show mac address-table address
command. You can view all of the entries in the MAC address table
with the command show mac address-table
, but if you know the
MAC address of the relevant system and only wish to determine the port on
the switch to which it connects, you can specify its MAC address with the
command show mac address-table address
followed by the 48-bit
MAC address, which can be in the form xx.xx.xx.xx.xx.xx
or xxxx.xxxx.xxxx
.
Saturn>show mac address-table address 50:e5:49:d8:13:37 Mac Address Table ------------------------------------------- Vlan Mac Address Type Ports ---- ----------- -------- ----- 1 50e5.49d8.1337 DYNAMIC Fa0/19 Total Mac Addresses for this criterion: 1 Saturn>
With the port number, you can determine details for the interface to which
the system connects using a show interfaces port
where
port is the port identified by the show mac address-table address
command.
[ More Info ]