cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1328
Views
0
Helpful
5
Replies

MAC address of device on port

wmurray
Level 1
Level 1

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 5

syntaxmonster
Level 1
Level 1

Try this:

sh mac-address-table | include

lanbrown
Level 1
Level 1

IOS or CatOS?

dagyb
Level 1
Level 1

OR

sho cam dynamic

ToddWarren
Level 1
Level 1

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.

ccube
Level 1
Level 1

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.

Getting Started

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: