01-18-2006 06:54 AM
What command or commands will give me the MAC address of the device that is plugged into a particular port on a switch?
01-18-2006 08:05 AM
Try this:
sh mac-address-table | include
01-18-2006 08:06 AM
IOS or CatOS?
01-18-2006 11:07 AM
OR
sho cam dynamic
01-19-2006 05:57 AM
SHOW MAC-ADD INT G2/1, for example, in IOS on gigabit port 2/1. Really helps us to help you if you can provide the OS.
01-25-2006 01:21 AM
You can also solicit this information from the device using SNMP from this structure:
.1.3.6.1.2.1.17.4.3
+--dot1dTpFdbEntry(1) detail
|
+-- -R-- String dot1dTpFdbAddress(1)
| Textual Convention: MacAddress
| Size: 6
+-- -R-- Integer dot1dTpFdbPort(2)
+-- -R-- EnumVal dot1dTpFdbStatus(3)
| Values: other(1), invalid(2), learned(3), self(4), mgmt(5)
These will index back to ifIndex which you can use to get the port description from ifDescr. Both of these values come from the ifEntry table.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: