Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

MAC address of device on port

What command or commands will give me the MAC address of the device that is plugged into a particular port on a switch?

5 REPLIES
New Member

Re: MAC address of device on port

Try this:

sh mac-address-table | include

New Member

Re: MAC address of device on port

IOS or CatOS?

New Member

Re: MAC address of device on port

OR

sho cam dynamic

New Member

Re: MAC address of device on port

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.

New Member

Re: MAC address of device on port

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.

267
Views
0
Helpful
5
Replies