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

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

For an introduction to the new site, click here. And see here for current known issues.

New Member

Show mac command


can anyone tell me the exact answer to this question.

Which command will show the MAC addresses of stations connected to switch ports?

A. show mac-address
B. show arp
C. show table
D. show switchport

now the option A cant be selected because only half of it is given so you ppl think answer B is right or still A must be chosen ?


VIP Super Bronze

Show mac command


It is B

BTW, there in no "show mac-address". The correct command is show mac address-table



Show mac command


The question is unfortunately slightly misleading as you may find with more cisco focused tests (so please do not feel frustrated).

In my view the correct answer can only be "A".

The original form of the command in question was "show mac-address-table" which was later changed to "show mac address-table". But even the current IOS releases (there is quite different command used within CatOS) accept both versions of this command. So "show mac-address" can be viewed as the abbreviated version of the earlier version of the command (you can even use "show mac-" only if you wish to get the requested result).

The other answers are clearly nonsense, the "B" because if you have e.g. L2 switch then "sh arp" command will show you both the IP and MAC addresses of the stations recently contacted via the managment vlan ONLY.

Best regards,


Show mac command

Hi Ahmed;

In addition to you A nd B commands you can use below command as well.

if CDP enabled in your network then, you can try below command to Identify machines connected to switches,

#traceroute mac xxxx.xxxx.xxxx  xxxx.xxxx.xxxx (the x is the end user PC mac)

the abouve command will give the o/p as below

#traceroute mac 0000.0000.0000 0000.0000.0000
Source 0000.0000.0000 found on switch5
1 switch5 ( : Gi0/43 => Gi0/43
Destination 0000.0000.0000 found on switch5
Layer 2 trace completed


KodandaRao - Please rate helpful posts

CreatePlease login to create content